Closed Bug 30373 Opened 25 years ago Closed 23 years ago

Get 304 Not Modified error loading script

Categories

(Core :: Networking: HTTP, defect, P3)

x86
Windows NT
defect

Tracking

()

VERIFIED WORKSFORME
mozilla0.9.1

People

(Reporter: stuffduff, Assigned: darin.moz)

References

()

Details

(Whiteboard: [NEED INFO][nsbeta3-])

if you are not the person to contact please point me in the right direction.

using javascript to write content to child frame
works in NN4.7 and MSIE 5.01
but not in Mozilla
Component: Core → DOM Level 0
Product: Rhino → Browser
What's going on is that when Mozilla attempts to load
http://hip.unmc.edu/js/enum.js, it gets back "<HTML><HEAD><TITLE>304 Not
modified</TITLE></HEAD>..." prepended to the contents of the .js file. I don't
know why that's happening--could it be an error in our networking code? Neither
4.x or IE have the problem.
Assignee: norris → gagan
Component: DOM Level 0 → Networking
QA Contact: cbegle → tever
Summary: index.html uses javascript to write menu to child frame → Get 304 Not Modified error loading script
Hmmm... interesting, a trace on 4.7 shows two requests for the same .js file but
only one response. Since 304 means we did a If-Modified-Since, we are probably
not patching the response back correctly. cc'ing cache guys.
Target Milestone: M15
cc'ing with more force... :) ->gordon
Assignee: gagan → gordon
The problem may be related to the fact that mozilla doesn't update the URL it's 
viewing when it recieves a 304. This is Bad. If you reload once the page is 
loaded, then the correct URL is shown. To view for yourself, follow any 
applications homepage/changelog/download type link at http://freshmeat.net - 
they all use freakin 304s...
Target Milestone: M15 → M17
Moving post beta bugs to M18 which is now the post-beta milestone.
Target Milestone: M17 → M18
Keywords: nsbeta3
need more info on if this is still happening. 
Keywords: qawanted
Whiteboard: [NEED INFO]
no info as yet. and too late.
Whiteboard: [NEED INFO] → [NEED INFO][nsbeta3-]
worksforme under Mac OS 9.0.4, so must be WinNT bug.

mozilla build 2000092804-M18.
Clarification; amplification.

When I said "worksforme" I should have said, "I don't get a 'Get 304 Not
Modified error loading script."  I should have checked under NC 4.75 before
posting to bugzilla.  My bad.

When I load this page on the Mac under Mac OS 9.0.4 and build 2000092804-M18,
all I get is a blue field on the lefthand side of the page.  There are two
slightly different shades of blue in the box, as though a rectangular box is
overpainting where the javascript menu items are supposed to be.  The javascript
does *not* appear to be processed.  In my JavaScript console, the following
message appears:

"Error:  menu.document.xmenu has no properties

Source file:  http://hip.unmc.edu/ent/ent_menu.js

Line:  180                                Column:  0"


Now under NC 4.75 on the Mac, I have to reload the page to get it to work.  The
first time I load the page, I get a grey box with the javascript menu items
visible.  Two pictures on the right were not shown.  When I reload, the
javascript menu items appear in a blue box which does *not* have two different
shades of blue as I described above.  At *no* time on the Mac did I see the "Get
304 Not Modified error loading script" message, which led me to believe it
worked on the Mac, thus my earlier post.

Hope this helps, sorry for any inconvienence.
Finally tried Netscape 6
No Joy.
Target Milestone: M18 → mozilla0.9
Still not fixed with the new cache.  We'll need to investigate for 0.9.1.
Target Milestone: mozilla0.9 → mozilla0.9.1
This is more likely to be a problem with HTTP than the cache. Darin, what do you 
think?
Assignee: gordon → darin
Component: Networking → Networking: HTTP
neeti: do you think you could help investigate this bug?  are we still seeing
this error in recent builds?  thanks!
Status: NEW → ASSIGNED
Keywords: helpwanted
this appears to be fixed now.
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → WORKSFORME
I can't connect to that url - eventually the connection just times out.
the server just appears to be down.
Verified WFM.
Status: RESOLVED → VERIFIED
QA Contact: tever → junruh
You need to log in before you can comment on or make changes to this bug.