Closed Bug 1172156 Opened 10 years ago Closed 10 years ago

Caching happening even when toggled off

Categories

(DevTools :: General, defect)

40 Branch
x86_64
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: nolski, Unassigned)

Details

Attachments

(1 file)

Request still seem to be cached (in the network toolbar) when I perform a hard refresh (cmd + shift+ R). I have Disable Cache (when the toolbox is open) toggled in dev tools (and I have dev tools open). This is making requests to localhost. I also have browser.cache.offline.enable set to False.
How is it loaded? XHR? Script tag? Something else?
Flags: needinfo?(me)
It's loaded through a script tag. There are other resources that are being cached as well which are loaded through XHR using requirejs.
Flags: needinfo?(me)
Disable cache currently only disables the cache until the page load event is fired. We plan on fixing this in bug 1027579. Could it be that your script loads after the load event is fired?
That is very likely. All the scripts are being loaded through require.js. Is there a known work around?
In case anyone is also having issues writing a requrejs application and doesn't want to restart their browser every time they make a code change, this stack overflow solution provided a good temporary work around. http://stackoverflow.com/questions/8315088/prevent-requirejs-from-caching-required-scripts
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: