Hi,

I'm observing an unexpected behavior, these are the steps to replicate it:

1. I enable the boost cache on the site (using FireFox logged in as admin)
2. On a separate MS IE browser not logged in, I hit a few main pages that are also visible to anonymous visitors
3. The admin user in FF start seeing the cached version of those pages instead of the dynamic version.

Can anyone confirm this?
Thanks.

Comments

Crimson’s picture

I noticed it too. Until I logged out and logged back in again. And everything was working.

moshe weitzman’s picture

can anyone confirm? try using 5 release. reopen if this is still a problem.

i guess boost could kill all open sessions upon install?

mariano.barcia’s picture

Couldn't yet tested in D5, but the workaround mentioned in #1 works fine. So yes, it's some kind of bug but I can live with it so far.

liam mcdermott’s picture

Confirmed using D5 for me too. Logging out and logging back in again fixed the issue. I double-checked and the DRUPAL_UID cookie wasn't in the browser cache, although the user was still logged-in.

benjamine_df’s picture

I think the reason is browser caches the original file which was sent when the user has logged in anonymous. When the user logs in and then visits the old accessed page, the browser serves the file from its own cache instead of going back to the server.

For all static pages served from the cache, revalidate http header should be sent. This will make the browser to check with server whether there are any changes.

I haven't looked into the code, just my theory

Adding following lines to .htaccess in the boost cache directory may fix the problem.

  <IfModule mod_headers.c>
      Header add Cache-Control "must-revalidate"
  </IfModule>

More references
http://drupal.org/node/185075
http://drupal.org/node/18390

mariano.barcia’s picture

I'm not sure this is the same problem we are talking about... I remember I had two different sessions (one in MS IE anon and the other in FF as admin) so the FF session never received the anonymous/cached version of the page.

mariano.barcia’s picture

Priority: Critical » Minor

throttling down

catch’s picture

Status: Postponed (maintainer needs more info) » Closed (duplicate)