Thanks for your reply Andrea.

I haven't actually changed any of the settings - 'automatically cache non-default styles' is selected out-of-the-box - and under the individual layer's 'tile caching' configuration 'Create a separate cache for each STYLE' is selected. But this is not what happens - I only get a cache, and imagery, for the default style.

To recreate:

1. Enable direct integration with GWC.
2. Set up an imagery layer with a default and at least one alternate style.
3. Preview the layer with OpenLayers and show the control panel.
4. Choose 'Tiled' under 'Tiling'. *(Important, else the images will bypass GWC)*
5. Flick between the styles available in the 'Styles' drop-down.

You only get imagery in the default style.

Regards,
Andrew

On 27/08/2013 17:35, Andrea Aime wrote:
On Tue, Aug 27, 2013 at 8:50 AM, Andrew Miskelly <[email protected] <mailto:[email protected]>> wrote:

    Hi all,

    On the caching defaults web administration page there is an option to
    'automatically cache non-default styles'. With this checked (as is the
    case by default) I would expect WMS requests which are routed through
    the integrated GWC to respect the STYLES parameter and cache and
    respond
    with imagery in the alternative style but it doesn't seem to work. The
    STYLES parameter is ignored and the image always comes back with the
    default style.

    Is this a bug or am I missing some configuration? I'm running 2.3.5.

As far as I know, changing the default should only affect layers created after the default was changed, every layer has its own setting that is, at creation time, a copy of the defaults
So, have you checked the layer configuration?
Cheers
Andrea

--
==
Our support, Your Success! Visit http://opensdi.geo-solutions.it for more information.
==

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39  339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

-------------------------------------------------------

------------------------------------------------------------------------------
Introducing Performance Central, a new site from SourceForge and 
AppDynamics. Performance Central is your source for news, insights, 
analysis and resources for efficient Application Performance Management. 
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to