<div dir="ltr"><div><div>Dan,<br><br>> 1. No, you are not correct. The browser CAN cache those requests.<br><br></div>Hum, in wms mode? I am not sure. In WMTS, TMS, etc mode yes but not in WMS as the request will change each time.<br><br></div>Y.<br></div><div class="gmail_extra"><br><div class="gmail_quote">2018-05-30 19:15 GMT+02:00 Dan Little <span dir="ltr"><<a href="mailto:theduckylittle@gmail.com" target="_blank">theduckylittle@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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" target="_blank">https://developers.google.<wbr>com/web/fundamentals/<wbr>performance/optimizing-<wbr>content-efficiency/http-<wbr>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><div class="h5"><div dir="ltr">On Wed, May 30, 2018 at 11:41 AM Mark Volz <<a href="mailto:MarkVolz@co.lyon.mn.us" target="_blank">MarkVolz@co.lyon.mn.us</a>> wrote:<br></div></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">





<div link="#0563C1" vlink="#954F72" lang="EN-US">
<div class="m_-2560011376745857524m_-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_-2560011376745857524m_-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_-2560011376745857524m_-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></div></div>

______________________________<wbr>_________________<br>
mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.<wbr>org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/mapserver-users" rel="noreferrer" target="_blank">https://lists.osgeo.org/<wbr>mailman/listinfo/mapserver-<wbr>users</a></blockquote></div>
<br>______________________________<wbr>_________________<br>
mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.<wbr>org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/mapserver-users" rel="noreferrer" target="_blank">https://lists.osgeo.org/<wbr>mailman/listinfo/mapserver-<wbr>users</a><br></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>Training and support manager<br>Camptocamp<br>Bâtiment le Dauphin - 1er étage<br>18 rue du Lac Saint André<br>73382 Le Bourget-du Lac<br><br>Tel (France) : +33 4 58 48 20 43<br>Tel (Switzerland) : +41 21 619 10 43<br>Mob. : +33 6 18 75 42 21<br><br>email : <a href="mailto:yves.jacolin@camptocamp.com" target="_blank">yves.jacolin@camptocamp.com</a><br><a href="http://www.camptocamp.com" target="_blank">http://www.camptocamp.com</a></div></div></div></div></div></div></div></div></div></div></div>
</div>