Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
XHR requests getting cached, if caching headers is set for php files
#1
Hello,

Today, I found a smaller problem, if you're having caching headers for PHP files set. Let's say you're in the admin panel, under plugins, and you disable a plugin. This will do a XHR request to the page, but if the php files is getting cached, the XHR wont work.

A way to fix this is either to send the cache-control: no-cache together with the request itself, or appending like etc time=epochtime.

Best regards,
Lucas Rolff
Reply




Users browsing this thread: 1 Guest(s)