?
Solved

Firefox 38.2.0 is caching when it should not

Posted on 2016-08-02
3
Medium Priority
?
103 Views
Last Modified: 2016-11-01
Firefox is caching data when it should not be.  Any ideas what be going on?  The below code is not working and the page keeps getting pulled.  This works on both chrome and IE.


        <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
        <meta http-equiv="cache-control" content="no-cache">
        <meta http-equiv="cache-control" content="no-store">
        <meta http-equiv="Pragma" content="no-cache">
        <meta http-equiv="Expires" content="0">
0
Comment
Question by:The Dude
  • 2
3 Comments
 
LVL 84

Expert Comment

by:Dave Baldwin
ID: 41740034
Firefox does not do what you think it should.  https://developer.mozilla.org/en-US/docs/Web/HTTP/Caching_FAQ  And IE and Chrome may not either.  If you can click on 'Back' and get the previous page without a trip to the server, then it is being retrieved from 'cache'.

In addition, 'meta' statements are not necessarily exact replacement for actual headers from the server.  Firefox does not list the statements you are trying to use for cache control as valid 'meta' statements.  https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta
0
 

Author Comment

by:The Dude
ID: 41742335
Hmmmm.. The problem is that we are trying to end a session via logout page.  

Do you think something like this would work?

thanks.

Fred
0
 
LVL 84

Accepted Solution

by:
Dave Baldwin earned 2000 total points
ID: 41743083
The problem is that we are trying to end a session via logout page.
I do that all the time without problems with caching.  The session is ended on the server so I'm not sure why you are having a problem in the browser.  What language are you using for your server code?

The 'cache headers' should be sent by the server and not with 'meta' statements, especially since Firefox does not appear to recognize them.  Other browsers will recognize the header sent by the server.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
Google currently has a new report that is in beta and coming soon to Webmaster Tool accounts. This Micro Tutorial will highlight new features for Google Webmaster Tools.
This Micro Tutorial will demonstrate how to add subdomains to your content reports. This can be very importing in having a site with multiple subdomains.

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question