Solved

Firefox 38.2.0 is caching when it should not

Posted on 2016-08-02
3
54 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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

How many times have you been browsing the internet, with multiple tabs open, and closed the wrong one? Have you ever clicked 'Close all tabs' instead of 'Close current tab' ? Internet Explorer 8 now brings to you, what Firefox has had for a wh…
Internet is a big network which is formed by connecting multiple small networks.It is a platform for all the users which are connected to it.Internet act as platform in different fields. Such as: Internet  as a collaboration platform. Internet  as…
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.
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 +…

776 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