[OpenLayers-Users] 'Pragma: no-cache' in OpenLayers WMS getMap request

Jan Henrik Øverland janhenrik.overland at gmail.com
Wed Nov 23 08:01:09 EST 2011


Hi,

I have WMS overlays (source http://iridl.ldeo.columbia.edu) in my GIS
application (built on ExtJS, Mapfish, OpenLayers). It works, but the
overlays do not seem to show up any faster after the first load and the
Chrome inspector confirms that. So I talked to the guys at columbia.edu and
they say that they can se 'Pragma: no-cache' in my getMap requests.

My WMS layers are created like this:

new OpenLayers.Layer.WMS(
    <name>,
    <url>,
    {
        layers: <layers>,
        transparent: true,
        format: 'image/png'
    },
    {
        isBaseLayer: false,
        buffer: 0,
        ratio: 1,
        singleTile: true
    }
)

How can I control the Pragma parameter? It is obviously not provided in the
base url.

Jan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20111123/b42c4e6c/attachment-0001.html


More information about the Users mailing list