Closed Bug 289563 Opened 20 years ago Closed 20 years ago

Cached javascript still runs after updated .js file

Categories

(Firefox :: General, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: kkeim, Assigned: bugzilla)

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0

I updated a .js file and downloaded it to a web server running GoAhead.  One of
the pages used the .js for entry validation.  I found that the old .js file was
still being used to validate the page.  In addition, the new .js file was being
used IN ADDITION TO and AFTER the old one.  Both new and old files had the same
name.  Going to Tools/Options and clearing the cache fixed this problem.

Reproducible: Didn't try

Steps to Reproduce:
1.  Test validating .js file by deliberately entering invalid data.
2.  Update the existing .js file on web server running GoAhead
3.  Re-test, and old .js file still runs.

Actual Results:  
The error message in the replaced .js file showed up.

Expected Results:  
Should have shown the error message in the new .js file.
The new .js file was not being run as stated in the description, only the 
cached one.
(In reply to comment #1)
> The new .js file was not being run as stated in the description, only the 
> cached one.

So can this bug be closed?
Yes, close it.
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.