You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Seema Patel <se...@hotmail.com> on 2014/02/12 13:31:08 UTC

HTTP Status 304 on GET

Hi,

I've just upgraded my java from 1.5 to 1.7, tomcat from 5.5.29 to 7.0.50 on the test environment. 
I have removed all JCIFs authentication from my application and am authenticating users against LDAP through tomcat.
I have managed to get my application to load and allow me access, but when I go to different pages I'm getting HTTP 304 in my localhost_access_log file.
The log file contains:

[12/Feb/2014:12:03:56 +0000] "GET / HTTP/1.1" 200 11444
[12/Feb/2014:12:04:23 +0000] "GET /my_application/ HTTP/1.1" 200 20972
[12/Feb/2014:12:04:23 +0000] "GET /my_application/css/main.css HTTP/1.1" 304 -
[12/Feb/2014:12:04:24 +0000] "GET /my_application/css/main.css HTTP/1.1" 304 -
[12/Feb/2014:12:04:24 +0000] "GET /my_application/js/common.js HTTP/1.1" 200 1296
[12/Feb/2014:12:04:24 +0000] "GET /my_application/js/common.js HTTP/1.1" 200 1296
[12/Feb/2014:12:04:24 +0000] "GET /my_application/yui/yuiloader-dom-event/yuiloader-dom-event.js HTTP/1.1" 304 -
[12/Feb/2014:12:04:24 +0000] "GET /my_application/yui/yuiloader/yuiloader-min.js HTTP/1.1" 304 -
[12/Feb/2014:12:04:24 +0000] "GET /my_application/yui/yahoo/yahoo-min.js HTTP/1.1" 304 -
[12/Feb/2014:12:04:24 +0000] "GET /my_application/yui/event/event-min.js HTTP/1.1" 304 -
[12/Feb/2014:12:04:24 +0000] "GET /my_application/yui/dom/dom-min.js HTTP/1.1" 304 -
[12/Feb/2014:12:04:24 +0000] "GET /my_application/yui/element/element-beta-min.js HTTP/1.1" 304 -
[12/Feb/2014:12:04:24 +0000] "GET /my_application/yui/dragdrop/dragdrop-min.js HTTP/1.1" 304 -
[12/Feb/2014:12:04:24 +0000] "GET /my_application/yui/resize/resize-min.js HTTP/1.1" 304 -
[12/Feb/2014:12:04:24 +0000] "GET /my_application/yui/animation/animation-min.js HTTP/1.1" 304 -
[12/Feb/2014:12:04:24 +0000] "GET /my_application/yui/layout/layout-min.js HTTP/1.1" 304 -
etc..
etc...

When looking in webapps/my_application/.. at the paths shown above, they all exist.  Why is it then showing a 304 error and not loading the pages properly?
FYI...YUI version is 2.6.0 in case that makes any difference to this (though in the above error, even the css files are showing the 304 error)


Thanks
Seema
 		 	   		  

RE: HTTP Status 304 on GET

Posted by Seema Patel <se...@hotmail.com>.

> Subject: Re: HTTP Status 304 on GET
> From: dmikusa@gopivotal.com
> Date: Wed, 12 Feb 2014 08:02:01 -0500
> To: users@tomcat.apache.org
> 
> On Feb 12, 2014, at 7:48 AM, Seema Patel <se...@hotmail.com> wrote:
> 
> > 
> > 
> >> Date: Wed, 12 Feb 2014 12:38:33 +0000
> >> From: markt@apache.org
> >> To: users@tomcat.apache.org
> >> Subject: Re: HTTP Status 304 on GET
> >> 
> >> On 12/02/2014 12:31, Seema Patel wrote:
> >> 
> >>> When looking in webapps/my_application/.. at the paths shown above, they all exist.  Why is it then showing a 304 error and not loading the pages properly?
> >>> FYI...YUI version is 2.6.0 in case that makes any difference to this (though in the above error, even the css files are showing the 304 error)
> >> 
> >> Did you bother to check what an HTTP 304 status code actually means
> >> before sending this e-mail? I'll give you a hint, it is NOT an error code.
> >> 
> >> Mark
> >> 
> >> 
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> >> For additional commands, e-mail: users-help@tomcat.apache.org
> >> 
> > 
> > I have checked, but when I say error, what I meant is that it's not loading the yui stuff in my application (hence to me an error).
> > Sorry for the confusion, I'm quite new to yui, as it was developed by previous developers and now I've just upgraded the java and tomcat, but can't get the application to work properly
> 
> It doesn’t seem like there’s a problem with your server.  As Mark mentioned 304 is not an error code.  You probably want to debug this through your browser.  Try Chrome Dev Tools or Firebug, inspect the requests and see if there are any JS errors.  
> 
> Dan
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 

Ok thanks Dan.  I'm using IE 9, as the application seems to work on that when live.  Just not working after I updated the java and tomcat versions.
Will look at the IE developer tools

Seema
 		 	   		  

Re: HTTP Status 304 on GET

Posted by Daniel Mikusa <dm...@gopivotal.com>.
On Feb 12, 2014, at 7:48 AM, Seema Patel <se...@hotmail.com> wrote:

> 
> 
>> Date: Wed, 12 Feb 2014 12:38:33 +0000
>> From: markt@apache.org
>> To: users@tomcat.apache.org
>> Subject: Re: HTTP Status 304 on GET
>> 
>> On 12/02/2014 12:31, Seema Patel wrote:
>> 
>>> When looking in webapps/my_application/.. at the paths shown above, they all exist.  Why is it then showing a 304 error and not loading the pages properly?
>>> FYI...YUI version is 2.6.0 in case that makes any difference to this (though in the above error, even the css files are showing the 304 error)
>> 
>> Did you bother to check what an HTTP 304 status code actually means
>> before sending this e-mail? I'll give you a hint, it is NOT an error code.
>> 
>> Mark
>> 
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>> 
> 
> I have checked, but when I say error, what I meant is that it's not loading the yui stuff in my application (hence to me an error).
> Sorry for the confusion, I'm quite new to yui, as it was developed by previous developers and now I've just upgraded the java and tomcat, but can't get the application to work properly

It doesn’t seem like there’s a problem with your server.  As Mark mentioned 304 is not an error code.  You probably want to debug this through your browser.  Try Chrome Dev Tools or Firebug, inspect the requests and see if there are any JS errors.  

Dan
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: HTTP Status 304 on GET

Posted by Seema Patel <se...@hotmail.com>.

> Date: Wed, 12 Feb 2014 12:38:33 +0000
> From: markt@apache.org
> To: users@tomcat.apache.org
> Subject: Re: HTTP Status 304 on GET
> 
> On 12/02/2014 12:31, Seema Patel wrote:
> 
> > When looking in webapps/my_application/.. at the paths shown above, they all exist.  Why is it then showing a 304 error and not loading the pages properly?
> > FYI...YUI version is 2.6.0 in case that makes any difference to this (though in the above error, even the css files are showing the 304 error)
> 
> Did you bother to check what an HTTP 304 status code actually means
> before sending this e-mail? I'll give you a hint, it is NOT an error code.
> 
> Mark
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 

I have checked, but when I say error, what I meant is that it's not loading the yui stuff in my application (hence to me an error).
Sorry for the confusion, I'm quite new to yui, as it was developed by previous developers and now I've just upgraded the java and tomcat, but can't get the application to work properly


Seema
 		 	   		  

Re: HTTP Status 304 on GET

Posted by Mark Thomas <ma...@apache.org>.
On 12/02/2014 12:31, Seema Patel wrote:

> When looking in webapps/my_application/.. at the paths shown above, they all exist.  Why is it then showing a 304 error and not loading the pages properly?
> FYI...YUI version is 2.6.0 in case that makes any difference to this (though in the above error, even the css files are showing the 304 error)

Did you bother to check what an HTTP 304 status code actually means
before sending this e-mail? I'll give you a hint, it is NOT an error code.

Mark


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org