?
Solved

Firefox 38.2.0 is caching when it should not

Posted on 2016-08-02
3
Medium Priority
?
85 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
[X]
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
  • 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

New benefit for Premium Members - Upgrade now!

Ready to get started with anonymous questions today? It's easy! Learn more.

Question has a verified solution.

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

I spend far too much time on the web keeping up with the news: politics, the environment, computer stuff, the Experts Exchange. It's never-ending. But many of the most informative web pages are overwhelmed with noise: scrolling banners, flashing tex…
#Citrix #Internet Explorer #Enterprise Mode #IE 11 #IE 8
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.
Shows how to create a shortcut to site-search Experts Exchange using Google in the Chrome browser. This eliminates the need to type out site:experts-exchange.com whenever you want to search the site. Launch the Search Engine Menu: In chrome, via you…
Suggested Courses

752 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