X
Tap here to go to the mobile version of the site.
Your Firefox is out of date and may contain a security risk! Upgrade Firefox

Support Forum

HTML5 Cache Manifest set to always go to network, Firefox says "This web site is asking to store data on your computer for offline use."

Posted

I have a simple HTML5 website and when I update it often I cannot see the changes because Firefox reads the old page from cache. So I put in a Cache Manifest file to indicate that nothing should be cached as follows:

CACHE MANIFEST NETWORK

Even though we are caching nothing, Firefox puts up a confusing warning to the user:

"This web site is asking to store data on your computer for offline use." with three buttons.

How can my website instruct Firefox that nothing is being cached and to suppress the (inaccurate) warning?

Additional System Details

Installed Plug-ins

  • Google Update
  • Adobe PDF Plug-In For Firefox and Netscape 10.1.6
  • Adobe PDF Plug-In For Firefox and Netscape 11.0.02
  • Shockwave Flash 11.5 r502
  • A plugin to detect whether the Adobe Extension Manager is installed on this machine.
  • A plugin to detect whether the Adobe Application Manager is installed on this machine.
  • NPWLPG
  • Intel web components for Intel® Identity Protection Technology
  • Intel web components updater - Installs and updates the Intel web components
  • 4.1.10329.0
  • The plug-in allows you to open and edit files using Microsoft Office applications
  • Office Authorization plug-in for NPAPI browsers

Application

  • User Agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:20.0) Gecko/20100101 Firefox/20.0

More Information

cor-el
  • Top 10 Contributor
  • Moderator
10783 solutions 97050 answers

Helpful Reply

A cache manifest for storing data offline doesn't have anything to do with seeing an older version of web pages.

The offline cache is used by specific applications so they can store specific data on your computer.

You would have the server send HTTP response headers to disable caching in Firefox like .

You can reload web page(s) and bypass the cache to refresh possibly outdated or corrupted files in such cases.

  • Press and hold Shift and left-click the Reload button.
  • Press "Ctrl + F5" or press "Ctrl + Shift + R" (Windows,Linux)
  • Press "Command + Shift + R" (MAC)

Question owner

Thank you for your quick response; I am somewhat confused by your answer:

1. I have examples from W3School and others that show, in HTML5, if you want to insure that the web page refreshes from the server then you use the construct "NETWORK <newline>*", as the only command after "CACHE MANIFEST". It is further detailed in http://www.w3schools.com/html/html5_app_cache.asp.

2. How do you recommend that the web site insures the user always gets a fresh reload when content has changed on a web page?

3. Why would Firefox alert the user that offline caching is requested when the manifest file explicitly instructs the browser NOT to cache (always go to the network)? Note that no other browser does this. Firefox seems to just throw up the warning whenever a reference to a manifest file is seen, without examining whether there is actually caching requested! Very confusing to the ultimate user.

Your help is very much appreciated.

cor-el
  • Top 10 Contributor
  • Moderator
10783 solutions 97050 answers

Helpful Reply

Quote: HTML5 introduces application cache, which means that a web application is cached, and accessible without an internet connection.

This only applies to special web applications that store data locally and not to the way web pages are rendered.
If you only have a problem with Firefox not showing the current version of (your) web page after having updated the code then this is about data store in the disk cache and not the offline storage.
You can normally see the caches mentioned on the about:cache page.
The disk cache can be missing in Private Browsing mode and if you clear the cache when you close Firefox.

Modified by cor-el

Question owner

Thank you, that does clarify the usage of the Cache Manifest file. I'll continue to look into the data cache issue to resolve my problem, which is that when I update the html code the resulting changes do not always show on the page (and also not in the page source).

If anyone knows how, in HTML5, to assure that changes in the page coding will be loaded by the user's browser when he has the old version cached that would be very helpful!

(In other words, <meta http-equiv="Cache-Control" content="no-cache"/>, which is no longer valid in HTML5.)

Modified by stvgld