Forum Moderators: phranque

Message Too Old, No Replies

304 HTTP Response

What is the 304 status code, and how to best use it for search engines

         

whitewizard

8:53 pm on Nov 16, 2007 (gmt 0)

10+ Year Member



Hi

First Post *hello* and was just wondering about the 304 status code.

Take LAMP for example - a site which uses rewrites, and doesn't change content that frequently.

Is this process as simple as if (current_date!= last_modified_date) throw 304? or is it something else?

WW

--added
Is it recommended?
Is it good for Google?
Should/Could/Does it associate with standard sitemap lastmod?

jdMorgan

9:35 pm on Nov 16, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



This is the default server behaviour, so yes, I'd say it is recommended.

If object's Last-Modified date precedes date received in If-Modified-Since client request header, then return 304-Not Modified.

Jim

whitewizard

9:52 pm on Nov 16, 2007 (gmt 0)

10+ Year Member



Is this for images/css/js etc or html files also?

jdMorgan

10:04 pm on Nov 16, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Any object, as stated.

Jim

whitewizard

10:43 pm on Nov 16, 2007 (gmt 0)

10+ Year Member



<edit>I</edit> always seem to get a 200 for "GET /" - should you also get a 304?

Is this affected by storing temporary 'internet' or caching files in browser settings (am using firefox/livehttpheaders)