[MS4W-Users] Apache response header caching for MapCache requests?

Mark Volz MarkVolz at co.lyon.mn.us
Wed Oct 16 16:58:20 EDT 2019


I would like to set a response header in apache so that clients will keep a cache of any mapcache request for several days (if not longer).  I noticed currently the cache is only working for two days as set by the default.  However, I would like to increase the time for any jpeg files that are returned.  One possible issue is that the request not for a .jpg file, but instead it is a mapcache application query.

Apache Configuration File:
<IfModule mod_expires.c>
                ExpiresActive on
                ExpiresDefault "access plus 2 days"
                ExpiresByType image/jpg "access plus 1 month"
                ExpiresByType image/jpeg "access plus 1 month"
                ExpiresByType image/png "access plus 1 month"

Request: https://mymapserver.org/mapcache?FORMAT=image%2Fjpeg &SERVICE=WMS&...
Returned type: jpeg.

Please let me know how I can increase the timeout for any mapcache requests.
Thank You!
Mark Volz

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ms4w.com/pipermail/ms4w-users/attachments/20191016/feec9502/attachment.html>

More information about the MS4W-Users mailing list