Chrome Caching Issues

4,640 views
Skip to first unread message

Tanvir Shaikh

unread,
Jan 30, 2012, 7:59:15 AM1/30/12
to Chromium-discuss
Hi,

We have a website where we have implemented login/logout mechanism.
When we go to any page, if our session has expired, we are logged out.
When we sign in and go to the same page where our session expired, we
are shown the logout page again.

This is because the browser caches the pages. We added the following
headers in the HTML pages to stop the caching:

<META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE, NO-STORE, MUST-
REVALIDATE">
<META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">
<META HTTP-EQUIV="EXPIRES" CONTENT="0">
<META NAME="ROBOTS" CONTENT="NONE">
<META NAME="GOOGLEBOT" CONTENT="NOARCHIVE">

While this works on other browsers, Chrome is still caching the pages.
Please let us know if there is any way to stop the caching in Chrome.

We would prefer if the solution would be in the form of HTML or
Javascript or any client-side code, as many people use our site and
any manual changes to browser settings would not be feasible.

Thanks.

Gavin Peters (蓋文彼德斯)

unread,
Jan 30, 2012, 1:58:13 PM1/30/12
to tan...@google.com, Chromium-discuss
Unfortunately, Chrome doesn't respect caching META tags.  Can you maybe change the HTTP headers directly to control caching?

Star http://code.google.com/p/chromium/issues/detail?id=2763 if you want to track this feature, so you'll know if it gets implemented.

- Gavin


--
Chromium Discussion mailing list: chromium...@chromium.org
View archives, change email options, or unsubscribe:
   http://groups.google.com/a/chromium.org/group/chromium-discuss

Zachary “Gamer_Z.” Yaro

unread,
Jan 30, 2012, 5:30:56 PM1/30/12
to gav...@google.com, tan...@google.com, Chromium-discuss
I hope this gets fixed soon.  A web app I maintain had an annoying bug a few months ago caused by Chrome's ignoring no-cache meta tags.

—Zachary “Gamer_Z.” Yaro



2012/1/30 Gavin Peters (蓋文彼德斯) <gav...@chromium.org>

Tanvir Shaikh

unread,
Feb 3, 2012, 6:17:03 AM2/3/12
to Chromium-discuss
Thank you for the suggestion. I changed the http headers directly from
our code and the caching seems to have stopped.

On Jan 30, 11:58 pm, Gavin Peters (蓋文彼德斯) <gav...@chromium.org> wrote:
> Unfortunately, Chrome doesn't respect caching META tags.  Can you maybe
> change the HTTP headers directly to control caching?
>
> Starhttp://code.google.com/p/chromium/issues/detail?id=2763if you want to
> track this feature, so you'll know if it gets implemented.
>
> - Gavin
>
> On 30 January 2012 07:59, Tanvir Shaikh <tan...@google.com> wrote:
>
>
>
>
>
>
>
> > Hi,
>
> > We have a website where we have implemented login/logout mechanism.
> > When we go to any page, if our session has expired, we are logged out.
> > When we sign in and go to the same page where our session expired, we
> > are shown the logout page again.
>
> > This is because the browser caches the pages. We added the following
> > headers in the HTML pages to stop the caching:
>
> > <META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE, NO-STORE, MUST-
> > REVALIDATE">
> > <META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">
> > <META HTTP-EQUIV="EXPIRES" CONTENT="0">
> > <META NAME="ROBOTS" CONTENT="NONE">
> > <META NAME="GOOGLEBOT" CONTENT="NOARCHIVE">
>
> > While this works on other browsers, Chrome is still caching the pages.
> > Please let us know if there is any way to stop the caching in Chrome.
>
> > We would prefer if the solution would be in the form of HTML or
> > Javascript or any client-side code, as many people use our site and
> > any manual changes to browser settings would not be feasible.
>
> > Thanks.
>
> > --
> > Chromium Discussion mailing list: chromium-disc...@chromium.org
Reply all
Reply to author
Forward
0 new messages