Closed Bug 1131151 Opened 11 years ago Closed 11 years ago

importScripts() caches, never refreshes

Categories

(Core :: DOM: Workers, defect)

31 Branch
x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 976045

People

(Reporter: baldiniebaldini, Unassigned)

Details

User Agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Firefox/31.0 Iceweasel/31.3.0 Build ID: 20141203101556 Steps to reproduce: importScripts('script.js') keeps importing an outdated cached file, even when reloading the page with ctrl+f5. Typing the script address directly into the address bar correctly shows the updated script.js, and appears to refresh the cache used by importScripts thereafter. This is consistently reproducible.
Component: Untriaged → DOM: Workers
Product: Firefox → Core
Hi baku, I was about to open a new bug about the problem that I commented about the importScripts stuff, and this bug is exactly that one. In order to bypass this, I had to use the old trick: importScripts('script.js?nocache=' + new Date()); Otherwise, the script is always cached.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Flags: needinfo?(amarchesini)
The problem is that the semantics of "ctrl+f5" are not well defined and all the proposed definitions are broken in various nasty ways...
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → DUPLICATE
Flags: needinfo?(amarchesini)
You need to log in before you can comment on or make changes to this bug.