Closed Bug 91163 Opened 23 years ago Closed 23 years ago

JavaScript <script> tags SRC attribute and mem. cache not working properly

Categories

(Core :: Networking: Cache, defect)

x86
Windows 2000
defect
Not set
minor

Tracking

()

RESOLVED DUPLICATE of bug 79983

People

(Reporter: josh, Assigned: gordon)

References

()

Details

In a homepage with: <SCRIPT LANGUAGE="JavaScript" SRC="somefile.js"></SCRIPT> in the HEAD tag, if you visit the page, change the somefile.js file on the web server without closing the browser or clearing memory cache, and then reload or revisit the site the somefile.js file will be loaded "on top of" the previous somefile.js instead of overwriting it. For example, if somefile.js is 10KB but then a developer optomizes it and makes it 5KB, then reloads the page that references this somefile.js, errors may occur. If you look at the .js source you will find that the file is STILL 10KB because the new 5KB file has been simply over-laid the 10KB file, still leaving the end 5KB of the old .js file at the end. This would not usually be a problem in a normal environment, but in a development environment this can be troublesome. Clearing memory cache and using the Debug-->Flush Memory feature forces Mozilla to reload the .js file and this error can be circumvented.
Browser, not engine. Reassigning to Networking for further triage -
Assignee: rogerl → gordon
Component: Javascript Engine → Networking: Cache
QA Contact: pschwartau → tever
this is an already-filed cache bug but I can't find it....
Whiteboard: DUPEME
Yup. *** This bug has been marked as a duplicate of 79983 ***
Status: UNCONFIRMED → RESOLVED
Closed: 23 years ago
Resolution: --- → DUPLICATE
Severity: normal → minor
Whiteboard: DUPEME
You need to log in before you can comment on or make changes to this bug.