Hi,
How can I make sure that the web browser will not read anything from the cache when the page load even the data coming from the WMS server?
jm.
Question about cache
Hi Jm,
In Map Suite Wms Server, we just need to override the GetMapCore in the plugin and then set the NoCache in the response context. For example, In Map Suite Wms Server HowDoI sample, we can do it in the DisplayASimpleMapWmsLayerPlugin.
public class DisplayASimpleMapWmsLayerPlugin : WmsLayerPlugin
…
protected override System.Drawing.Bitmap GetMapCore(GetMapRequest getMapRequest, MapConfiguration cachedMapConfiguration, System.Web.HttpContext context)
{
context.Response.Cache.SetCacheability(HttpCacheability.NoCache);
return base.GetMapCore(getMapRequest, cachedMapConfiguration, context);
}
…
Then we can see there is no cache in browser.
Hope it helps.
Thanks,
Johnny
Works!
thanks a lot.
jm.
Hi Jm,
Good to hear it works.
Any questions please don’t hesitate to let us know.
Thanks,
Johnny