Hi, thanks for answering. It&#39;s actually the other way around. I do want to cache, but the guys at <a href="http://columbia.edu/" target="_blank">columbia.edu</a> says that they can se &#39;Pragma: no-cache&#39; in the getMap WMS requests sent from my application and that I should remove it in order to speed up the loading of their maps.<div>

<br></div><div>Jan<br><div><div><br>&gt;&gt; My WMS layers are created like this:<br><br><div class="gmail_quote">On Thu, Nov 24, 2011 at 17:24, Diego Guidi <span dir="ltr">&lt;<a href="mailto:diegoguidi@gmail.com">diegoguidi@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">I&#39;m not sure to understand your problem, but if you need to avoid<br>
client caching of your requests you can easily manage this stuff using<br>
redraw(true)<br>
<a href="http://dev.openlayers.org/docs/files/OpenLayers/Layer/HTTPRequest-js.html#OpenLayers.Layer.HTTPRequest.redraw" target="_blank">http://dev.openlayers.org/docs/files/OpenLayers/Layer/HTTPRequest-js.html#OpenLayers.Layer.HTTPRequest.redraw</a><br>


<br>
as an alternative you can modify the url adding a random string at the<br>
end, somethung like wmsurl&amp;123456.<br>
you can easily manage this task with mergeNewParams<br>
<a href="http://dev.openlayers.org/docs/files/OpenLayers/Layer/HTTPRequest-js.html#OpenLayers.Layer.HTTPRequest.mergeNewParams" target="_blank">http://dev.openlayers.org/docs/files/OpenLayers/Layer/HTTPRequest-js.html#OpenLayers.Layer.HTTPRequest.mergeNewParams</a><br>


<br>
actually redraw(true) uses mergeNewParams to do it&#39;s stuff.<br>
<br>
so, you can add a listener to layer.loadstart event and call redraw(true).<br>
<br>
<br>
Diego Guidi<br>
<br>
<br>
<br>
<br>
On Thu, Nov 24, 2011 at 5:10 PM, Jan Henrik Øverland<br>
<div><div class="h5">&lt;<a href="mailto:janhenrik.overland@gmail.com">janhenrik.overland@gmail.com</a>&gt; wrote:<br>
&gt; And I don&#39;t have any meta tags like<br>
&gt; &lt;META HTTP-EQUIV=&quot;PRAGMA&quot; CONTENT=&quot;NO-CACHE&quot;&gt;<br>
&gt; &lt;META HTTP-EQUIV=&quot;CACHE-CONTROL&quot; CONTENT=&quot;NO-CACHE&quot;&gt;<br>
&gt; in my HTML.<br>
&gt; Jan<br>
&gt;<br>
&gt; On Wed, Nov 23, 2011 at 14:02, Jan Henrik Øverland<br>
&gt; &lt;<a href="mailto:janhenrik.overland@gmail.com">janhenrik.overland@gmail.com</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; Hi,<br>
&gt;&gt; I have WMS overlays (source <a href="http://iridl.ldeo.columbia.edu" target="_blank">http://iridl.ldeo.columbia.edu</a>) in my GIS<br>
&gt;&gt; application (built on ExtJS, Mapfish, OpenLayers). It works, but the<br>
&gt;&gt; overlays do not seem to show up any faster after the first load and the<br>
&gt;&gt; Chrome inspector confirms that. So I talked to the guys at <a href="http://columbia.edu" target="_blank">columbia.edu</a> and<br>
&gt;&gt; they say that they can se &#39;Pragma: no-cache&#39; in my getMap requests.<br>
&gt;&gt; My WMS layers are created like this:<br>
&gt;&gt; new OpenLayers.Layer.WMS(<br>
&gt;&gt;     &lt;name&gt;,<br>
&gt;&gt;     &lt;url&gt;,<br>
&gt;&gt;     {<br>
&gt;&gt;         layers: &lt;layers&gt;,<br>
&gt;&gt;         transparent: true,<br>
&gt;&gt;         format: &#39;image/png&#39;<br>
&gt;&gt;     },<br>
&gt;&gt;     {<br>
&gt;&gt;         isBaseLayer: false,<br>
&gt;&gt;         buffer: 0,<br>
&gt;&gt;         ratio: 1,<br>
&gt;&gt;         singleTile: true<br>
&gt;&gt;     }<br>
&gt;&gt; )<br>
&gt;&gt; How can I control the Pragma parameter? It is obviously not provided in<br>
&gt;&gt; the base url.<br>
&gt;&gt; Jan<br>
&gt;<br>
&gt;<br>
</div></div>&gt; _______________________________________________<br>
&gt; Users mailing list<br>
&gt; <a href="mailto:Users@lists.osgeo.org">Users@lists.osgeo.org</a><br>
&gt; <a href="http://lists.osgeo.org/mailman/listinfo/openlayers-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/openlayers-users</a><br>
&gt;<br>
&gt;<br>
</blockquote></div><br></div></div></div>