Hmmm ... My script is querying JSP pages that are accessed through a
proxied Apache server. There is no "Last-Modified" header being
automatically added, but as the response from the JSP is being generated
each time, that the header indicates a new "Date" value. Even when
bypassing Apache and making the requests directs to Tomcat, there is no
"Last-Modified" header being automatically added.

Would this suggest that I should modify my JSP to add this header and
update the value when the page response has been updated?

Suggestions? Thanks!

~ David

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: September 6, 2006 6:28 PM
To: jQuery Discussion.
Subject: Re: [jQuery] AJAX loadIfModified() problems

> I'm building a web page that periodically polls the server to display
> the status (OK, busy, loading, etc.)

jQuery doesn't actually check the returned contents from the server,
instead it sends the If-Modified-Since header to the server and checks
the Last-Modified response header coming back. Only if its the header
has been modified will jQuery actually report the data as also being
modified. This is an important distinction, and it relies upon your
script (if you're displaying things dynamically) you need to also
report a correct header. If you're only retrieving a static file,
smart web servers (like Apache) do this for you, so you don't need to
worry about it.

--John

_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to