Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Firefox 38.2.0 is caching when it should not

Posted on 2016-08-02
3
60 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:Member_2_7967562
  • 2
3 Comments
 
LVL 83

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:Member_2_7967562
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 83

Accepted Solution

by:
Dave Baldwin earned 500 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: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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

#Citrix #Internet Explorer #Enterprise Mode #IE 11 #IE 8
Several part series to implement Internet Explorer 11 Enterprise Mode
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.
How to create a custom search shortcut to site-search Experts Exchange using Google in the Firefox browser. This eliminates the need to type out site:experts-exchange.com whenever you want to search the site. Launch your Bookmark Menu: Press 'Ctrl +…

766 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