You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Paul Wallace <pw...@twowaytv.com.au> on 2006/09/26 06:19:28 UTC

HTTP 304

Hi,
 
Using TC5, I can not see why my log is showing:
 
192.168.3.26 - - [26/Sep/2006:14:06:44 +1000] "GET
/dir/gf/locationManager.js HTTP/1.1" 304 -
192.168.3.26 - - [26/Sep/2006:14:06:44 +1000] "GET /dir/gf/i18n.js
HTTP/1.1" 304 -
 
and many more like it, particularly after I stop the server, remove the
work directory and my JSP has in its header:
 
<meta http-equiv="pragma" content="no-cache"><meta http-equiv="Expires"
content="-1">
 
I read from w3.org that: 
 
"If the client has performed a conditional GET request and access is
allowed, but the document has not been modified, the server SHOULD
respond with this status code"
 
If however the client and server have no knowledge of these assets,
would it not request a fresh copy from the server and return HTTP 200
for example?
 
thanks for all input

Paul.
 

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


Re: HTTP 304

Posted by Mark Thomas <ma...@apache.org>.
Paul Wallace wrote:
> If however the client and server have no knowledge of these assets,
> would it not request a fresh copy from the server and return HTTP 200
> for example?

1. Check to see if the file is in your client's cache.
2. Tomcat does nothing with these tags. Your client may ignore them too.
3. Since this is a JSP, try setting the relevant headers rather than
using meta tags.

HTH,

Mark


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