Re: [mapserver-users] enabling browser cache from Mapcache?

2018-05-30 Thread Dan Little
Please take a moment to do a bit more reading about how browser caching
works:
-
https://developers.google.com/web/fundamentals/performance/optimizing-content-efficiency/http-caching

You cannot directly control what the browser chooses to cache but you can
use mod_expiry and friendly-reusable URLs (like XYZ tiles) to help in that
cause.  Repetitive WMS requests will be caught by the cache but it's much
harder to get a hit as it will change when the screen size, resolution, or
small shifts in locations differ.

To directly answer your questions:
1. No, you are not correct. The browser CAN cache those requests.
2. Yes, the browser will cache those images.

Cheers.

On Wed, May 30, 2018 at 11:41 AM Mark Volz  wrote:

> 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*
>
>
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapserver-users
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

[mapserver-users] enabling browser cache from Mapcache?

2018-05-30 Thread Mark Volz
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

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users