Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
persistent cache problem in admin
#13
mvlcek Wrote: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/)

Did some checking, lets see:
  • no cache statements in the .htaccess file.
  • also no fancy url ending in the fancy urls (just the standard setting, ie. fancy urls switched on)
  • must be something like this

Tried adding the code you suggested, but makes no difference, changes are not shown without first hitting refresh. Mind you, this goes for everything, change the navigation order, save. First a refresh needed to see the change. Delete a page, first a refresh needed, switch off plugin, first a refresh needed. The only action that does not need a refresh is when a file is deleted via the files tab. That does show immediately.

When I had this provider on the phone they said the standard line 'this is not caused by us but your CMS system is causing it', ie. the easy way out.

The fact that this never happens at any other provider nor is a known problem they didn't have an explanation for.
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)