Closed Bug 522038 Opened 15 years ago Closed 10 months ago

Offline App Cache Problem

Categories

(Core :: DOM: Core & HTML, defect)

x86
macOS
defect

Tracking

()

RESOLVED INVALID

People

(Reporter: codedread, Unassigned)

Details

I'm not sure how to report this bug, but I figure it's worth a shot.

At one time, I had the following web app using an offline manifest:

http://svg-edit.googlecode.com/svn/trunk/editor/svg-editor.html

However, when the manifest attribute was present on the <html> tag I started to notice that Firefox 3.5 would not show me the absolute latest, but a cached version (the link above is to the trunk of a SVN repo).  

Thinking the offline feature was broken in Firefox 3.5, I removed the manifest attribute from the <html> attribute for now.  However, Firefox _still_ refused to show the latest version from the web server.

I tried clearing browser history - this did not work.

I then tried fiddling with some about:config options:

browser.cache.offline.enable set to false
browser.cache.offline.capacity set to 1

The next time I tried to go to the above URL, Firefox gave me the 'offline' error message:  

Offline mode
Firefox is currently in offline mode and can't browse the Web.

I can browse to http://svg-edit.googlecode.com/svn/trunk/editor/ or other files in the repo without a problem.

My guess is that an offline version of SVG-edit is cached deep within Firefox and will not refresh itself no matter what I do.  This seems to mean that the only way to restore the proper behavior to Firefox is to start over with a new profile?

I will note that in all cases above, Safari/Opera/Chrome all showed me the proper version of SVG-edit (i.e. the latest).

This problem may not be reproducable, I don't know - but it is a serious problem.  Here is my best guess at how one MIGHT reproduce the problem:

1) Browse to http://svg-edit.googlecode.com/svn-history/r779/trunk/editor/svg-editor.html this is a version of SVG-edit that had the offline manifest still present
2) Observe that the 7th tool on the left has a tooltip "Poly Tool [7]"
3) Then try to browse to http://svg-edit.googlecode.com/svn/trunk/editor/svg-editor.html
4) Has the 7th tool tooltip changed to "Path Tool [7]" ?
Ok, I tried one more thing:

privacy.clearOnShutdown.offlineApps set to true

Then I shut down Firefox and restarted it - and boom! the URL now shows the most recent code!
And I just realized that of course my 'reproducable' instructions will not work since the URL in step 1 is different than the URL in step 3.  Still, I hope someone will look at the code for this feature in Firefox and figure out if there's a scenario where the offline app gets cached in preference over connecting to the internet (maybe through a proxy server).
Severity: normal → S3

AppCache has been removed

Status: NEW → RESOLVED
Closed: 10 months ago
Component: General → DOM: Core & HTML
Product: Firefox → Core
Resolution: --- → INVALID
Version: 3.5 Branch → unspecified
You need to log in before you can comment on or make changes to this bug.