[mapserver-users] enabling browser cache from Mapcache?
Eichner, Andreas - SID
Andreas.Eichner at sid.sachsen.de
Fri Jun 1 06:16:49 PDT 2018
Hi,
I just tested with mod_mapcache and it seems to use 300 as the default for the "expires" child element of a tileset.
It sets the Cache-control and Expires headers appropriately - even in WMS mode.
Setting the value to 0 turns of the generation of these headers but the browser (at least FF) still uses the If-Modified-Since header when requesting the image again and the server responds with status 304 (not modified) and an empty body.
So client side caching seems to work as expected.
Kind regards
> -----Original Message-----
> From: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org]
> On Behalf Of Mark Volz
> Sent: Wednesday, May 30, 2018 6:24 PM
> To: mapserver-users at lists.osgeo.org
> Subject: [mapserver-users] enabling browser cache from Mapcache?
>
> Hello,
>
>
>
> Using Apache, I would like to know if it is possible to set up a browser
> cache for images from mapcache so that images are stored on the client
> machine instead of having to get resent from the server. I enabled
> mod_expires and noticed that the png files for the buttons are cached
> unfortunately the mapcache png files are not cached. I presume it might
> not be possible to cache images from mapcache when used in WMS mode, but
> it might be possible when using either WMTS, or TMS mode.
>
>
>
> Questions:
>
> 1. Am I correct that we cannot use browser or client caching with
> mapcache in wms mode?
>
> 2. Can we use browser cache when using WMTS or TMS services?
>
>
>
> I am using GeoMOOSE which should be able to consume xyz TMS tiles.
>
>
>
> Thanks!
>
>
>
> Sincerely,
>
> Mark Volz, GISP
>
> Lyon County GIS Coordinator
>
>
More information about the MapServer-users
mailing list