Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
persistent cache problem in admin
#12
Draxeiro Wrote:So I scanned for mentions of cache and ran into this when I changed a bit of text, left the page, and went back to it:

Code:
...
HTTP/1.1 304 Not Modified
...
Expires: Sun, 29 Jul 2012 07:41:26 GMT
Cache-Control: max-age=86400

You should never get one of the above response headers with a PHP file.

Possible reasons:
  • You might have some some cache statements in your .htaccess file -> delete them
  • You use a fancy URL ending in .htm or .html, causing apache to cache by default -> you can probably overwrite this in your .htaccess
  • Your provider uses weird default cache settings -> you can probably overwrite this in your .htaccess

Try adding the following to the beginning of your .htaccess to prevent caching:
Code:
<FilesMatch "\.(php|html|html)$">
        ExpiresDefault A0
        Header set Cache-Control "no-cache, no-store, must-revalidate, max-age=0, proxy-revalidate, no-transform"
        Header set Pragma "no-cache"
    </FilesMatch>
(copied from http://blog.splash.de/2010/01/29/cache-k...-htaccess/)
I18N, I18N Search, I18N Gallery, I18N Special Pages - essential plugins for multi-language sites.
Reply


Messages In This Thread
persistent cache problem in admin - by Draxeiro - 2012-07-27, 22:06:06
persistent cache problem in admin - by shawn_a - 2012-07-27, 23:10:13
persistent cache problem in admin - by Draxeiro - 2012-07-27, 23:36:55
persistent cache problem in admin - by shawn_a - 2012-07-27, 23:54:00
persistent cache problem in admin - by Draxeiro - 2012-07-28, 02:02:23
persistent cache problem in admin - by shawn_a - 2012-07-28, 02:21:03
persistent cache problem in admin - by Draxeiro - 2012-07-28, 04:15:40
persistent cache problem in admin - by Draxeiro - 2012-07-28, 04:23:08
persistent cache problem in admin - by mvlcek - 2012-07-28, 06:11:34
persistent cache problem in admin - by shawn_a - 2012-07-28, 07:03:56
persistent cache problem in admin - by Draxeiro - 2012-07-28, 17:50:52
persistent cache problem in admin - by mvlcek - 2012-07-28, 18:58:13
persistent cache problem in admin - by Draxeiro - 2012-07-29, 15:46:05
persistent cache problem in admin - by shawn_a - 2012-07-29, 23:39:50
persistent cache problem in admin - by Draxeiro - 2012-07-30, 00:38:20
persistent cache problem in admin - by shawn_a - 2012-07-30, 11:28:47
persistent cache problem in admin - by Draxeiro - 2012-07-30, 16:44:15



Users browsing this thread: 1 Guest(s)