<div dir="ltr">Good point :)<br></div><div class="gmail_extra"><br><div class="gmail_quote">2018-05-31 11:49 GMT+02:00 Rahkonen Jukka (MML) <span dir="ltr"><<a href="mailto:jukka.rahkonen@maanmittauslaitos.fi" target="_blank">jukka.rahkonen@maanmittauslaitos.fi</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div link="blue" vlink="purple" lang="FI">
<div class="m_7603630271198879329WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Hi,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d" lang="EN-US">However, if client like OpenLayers or Leaflet is making 256x256 sized WMS requests they are always the same for the same
 tile and thus cacheable as well.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d" lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">-Jukka Rahkonen-<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">Lähettäjä:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"> mapserver-users [mailto:<a href="mailto:mapserver-users-bounces@lists.osgeo.org" target="_blank">mapserver-users-<wbr>bounces@lists.osgeo.org</a>]
<b>Puolesta </b>Yves Jacolin<br>
<b>Lähetetty:</b> 31. toukokuuta 2018 10:08<br>
<b>Vastaanottaja:</b> Dan Little <<a href="mailto:theduckylittle@gmail.com" target="_blank">theduckylittle@gmail.com</a>><br>
<b>Kopio:</b> mapserver-users <<a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.<wbr>org</a>>; Mark Volz <<a href="mailto:MarkVolz@co.lyon.mn.us" target="_blank">MarkVolz@co.lyon.mn.us</a>><br>
<b>Aihe:</b> Re: [mapserver-users] enabling browser cache from Mapcache?<u></u><u></u></span></p><div><div class="h5">
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">Dan,<br>
<br>
> 1. No, you are not correct. The browser CAN cache those requests.<u></u><u></u></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt">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.<u></u><u></u></p>
</div>
<p class="MsoNormal">Y.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">2018-05-30 19:15 GMT+02:00 Dan Little <<a href="mailto:theduckylittle@gmail.com" target="_blank">theduckylittle@gmail.com</a>>:<u></u><u></u></p>
<blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm">
<div>
<p class="MsoNormal">Please take a moment to do a bit more reading about how browser caching works: <u></u><u></u></p>
<div>
<p class="MsoNormal">- <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><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">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.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">To directly answer your questions:<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">1. No, you are not correct. The browser CAN cache those requests.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">2. Yes, the browser will cache those images.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Cheers.<u></u><u></u></p>
</div>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<div>
<div>
<p class="MsoNormal">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:<u></u><u></u></p>
</div>
</div>
</div>
<blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm">
<div>
<div>
<div>
<div>
<p class="MsoNormal"><span lang="EN-US">Hello,<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> <u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">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></span></p>
<p class="MsoNormal"><span lang="EN-US"> <u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Questions:<u></u><u></u></span></p>
<p class="m_7603630271198879329m-2560011376745857524m-7815103906551265410msolistparagraph"><span lang="EN-US">1.</span><span style="font-size:7.0pt" lang="EN-US">      
</span><span lang="EN-US">Am I correct that we cannot use browser or client caching with mapcache in wms mode?<u></u><u></u></span></p>
<p class="m_7603630271198879329m-2560011376745857524m-7815103906551265410msolistparagraph"><span lang="EN-US">2.</span><span style="font-size:7.0pt" lang="EN-US">      
</span><span lang="EN-US">Can we use browser cache when using WMTS or TMS services?<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> <u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">I am using GeoMOOSE which should be able to consume xyz TMS tiles.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> <u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Thanks!<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> <u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:#1f497d" lang="EN-US">Sincerely,</span><span lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal"><b><span style="color:#1f497d" lang="EN-US">Mark Volz, GISP</span></b><span lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal"><b><span style="color:#1f497d" lang="EN-US">Lyon County GIS Coordinator</span></b><span lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> <u></u><u></u></span></p>
</div>
</div>
</div>
</div>
<p class="MsoNormal">______________________________<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" target="_blank">https://lists.osgeo.org/<wbr>mailman/listinfo/mapserver-<wbr>users</a><u></u><u></u></p>
</blockquote>
</div>
<p class="MsoNormal"><br>
______________________________<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" target="_blank">https://lists.osgeo.org/<wbr>mailman/listinfo/mapserver-<wbr>users</a><u></u><u></u></p>
</blockquote>
</div>
<p class="MsoNormal"><br>
<br clear="all">
<br>
-- <u></u><u></u></p>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<p class="MsoNormal">Training and support manager<br>
Camptocamp<br>
Bâtiment le Dauphin - 1er étage<br>
<a href="https://maps.google.com/?q=18+rue+du+Lac+Saint+Andr%C3%A9&entry=gmail&source=g">18 rue du Lac Saint André</a><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><u></u><u></u></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div></div></div>
</div>

</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>