Hi ... Great module, just installed it last week and mostly its running well... For anonymous users the page loads are lightning fast and its taking noticeable load off my server. Can't believe i hadn't installed it earlier!

The only issue so far for me is that if i log in as user 1 and do some admin stuff, then log out ... (and am therefore back to anonymous user) some pages do not show up as cached static anonymous files, but are actually displaying with all the admin menus and blocks, and the node edit tabs, and there is no boost comment at the bottom. Clicking any admin links takes me to an access denied page, as officially I am logged out. If i refresh the page it still displays with all the admin menus and blocks. If i clear the browser cache i get the correct boost-cached static file.

This shouldn't pose a security issue as only users who can log in with this level of access would ever see this happen (cross tested in other browsers and this situation only presents itself within the browser of the user who has done the log in) But - it does pose a usability issue for admins who should have a reliable idea of their log in context.

This seems to happen for any node i visit while logged in as user 1 (and also for any other priveliged users)

Has anyone come across this behaviour before? Any ideas on how to fix it?

I had eaccelerator running on the server's php build so i disabled it, cleared everything (browser cache, boost files etc) and repeated all the testing and still the same. Boost is currently the only drupal caching/optimisation module i'm using, and drupal core caching is disabled.

Thanks!

Paul

Comments

mikeytown2’s picture

What version of Drupal are you using? When you updated did you update the htaccess file? Does it have this patch applied to it?
http://drupal.org/node/550488#comment-1931780

Related info
#197786: Some servers / browsers will cache pages even when header Cache-control: no-cache is set

In short you browser is caching the page locally.

_paul_meta’s picture

Component: Caching logic » Command line

Hi :) Thanks for your reply

I'm using Drupal 6.16 - all modules up to date. It looks like the lines added by the patch you refer to are included in D6.16's .htaccess file? I do full codebase updates with new drupal releases so i think everything should be up to date.

I have tried the boost module (both the current release and dev) on two different dedicated servers ... no change in behaviour between the dev and the stable.

The first server behaves as i outlined in my first post.

The second server behaves similarly, but on the second time of viewing a page (or refreshing the page) the admin context disappears and we're back to a cached, static, anonymous view page.

It does seem to be local caching but its strange that i get two different behaviours on two different dedicated servers. When testing on xampp i get the desired behaviour of nothing from the admin context being cached.

this is all within firefox 3.6.3

Any suggestions welcome and much appreciated :)

_paul_meta’s picture

Just crosschecked it in IE8 and it works perfectly ... on both servers. I have Follow RFC2616 14.9.4 deselected. Wierd ...

_paul_meta’s picture

And its all working perfectly in safari too ...

I rechecked it a few times in FF to make sure .. and the behaviours i've outlined seem to happen consistently every time. So it seems FF is caching admin content locally more aggressively than other browsers ... Any ideas why?

_paul_meta’s picture

Yep that fixed it ... IE8 and Safari are also both still happy with this hack applied. Thanks very much for this help, the boost module is working beautifully now.

mikeytown2’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

shyam541’s picture

bookmarking..