Ticket #2177 (closed bug: invalid)

Opened 4 years ago

Last modified 4 years ago

WFS refresh not working because of browser caching

Reported by: krisgeus Owned by: tschaub
Priority: minor Milestone: 2.9 Release
Component: Protocol.WFS Version: 2.8
Keywords: Cc:
State:

Description

When refreshing a layer with the WFS protocol the layer is not refreshed because the results are retrieved from the browser cache.

Adding a random number to the url would help.

Attachments

wfs-uuid-patch.txt Download (0.7 KB) - added by krisgeus 4 years ago.
Math.uuid.js Download (3.7 KB) - added by krisgeus 4 years ago.

Change History

Changed 4 years ago by krisgeus

Changed 4 years ago by krisgeus

Changed 4 years ago by krisgeus

add following line to OpenLayers.js file

"OpenLayers/Util/uuid/Math.uuid.js"

Changed 4 years ago by ahocevar

  • status changed from new to closed
  • resolution set to invalid

@krisgeus: browsers are not supposed to cache POST requests, unless the post response comes with appropriate Cache-Control or Expires header fields (see the "Post Caching" chapter in  http://www.mnot.net/javascript/xmlhttprequest/cache.html). So please make sure that your server does not return these headers with POST requests.

Note: See TracTickets for help on using tickets.