<div dir="ltr">Please take a moment to do a bit more reading about how browser caching works: <div>- <a href="https://developers.google.com/web/fundamentals/performance/optimizing-content-efficiency/http-caching">https://developers.google.com/web/fundamentals/performance/optimizing-content-efficiency/http-caching</a></div><div><br></div><div>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.</div><div><br></div><div>To directly answer your questions:</div><div>1. No, you are not correct. The browser CAN cache those requests.</div><div>2. Yes, the browser will cache those images.</div><div><br></div><div>Cheers.</div></div><br><div class="gmail_quote"><div dir="ltr">On Wed, May 30, 2018 at 11:41 AM Mark Volz <<a href="mailto:MarkVolz@co.lyon.mn.us">MarkVolz@co.lyon.mn.us</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="m_-7815103906551265410WordSection1">
<p class="MsoNormal">Hello,<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">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.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Questions:<u></u><u></u></p>
<p class="m_-7815103906551265410MsoListParagraph"><u></u><span>1.<span style="font:7.0pt "Times New Roman"">      
</span></span><u></u>Am I correct that we cannot use browser or client caching with mapcache in wms mode?<u></u><u></u></p>
<p class="m_-7815103906551265410MsoListParagraph"><u></u><span>2.<span style="font:7.0pt "Times New Roman"">      
</span></span><u></u>Can we use browser cache when using WMTS or TMS services?<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">I am using GeoMOOSE which should be able to consume xyz TMS tiles.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Thanks!<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><span style="color:#1f497d">Sincerely,<u></u><u></u></span></p>
<p class="MsoNormal"><b><span style="color:#1f497d">Mark Volz, GISP</span></b><b><span style="font-size:12.0pt;color:#1f497d"><u></u><u></u></span></b></p>
<p class="MsoNormal"><b><span style="color:#1f497d">Lyon County GIS Coordinator<u></u><u></u></span></b></p>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>

_______________________________________________<br>
mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/mapserver-users" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/mapserver-users</a></blockquote></div>