Question on Code 304

For requests for help from CG administrators, Wranglers, and experienced CG members. Please read the FAQ before posting. Also look at CG Wiki for tutorials and how-tos written by other CG webtoonists.
Post Reply
Jia
Regular Poster
Posts: 32
Joined: Fri Jan 01, 1999 4:00 pm
Location: Mountain View, CA USA
Contact:

Post by Jia »

I was checking my site's Log today and I found that there were many hits that responded with code 304 - not modified. Could someone explain to me what that is and how I can fix the problem?

User avatar
STrRedWolf
Confuzzled CG Admin
Confuzzled CG Admin
Posts: 2579
Joined: Fri Jan 01, 1999 4:00 pm
Location: undef;
Contact:

Post by STrRedWolf »

It's actually not a problem. It's how Netscape and IE knows when something in it's cache has gone stale or not.<P>To understand it, you have to understand how webpages are pulled -- the HyperText Transfer Protocal (HTTP). (Look for the Internet RFC on it though <A HREF="http://www.faqs.org," TARGET=_blank>http://www.faqs.org,</A> but it's a dry read).<P>The browsers, in pulling a page and it's contents that it already has in it's cache, will ask the server for the file, but with the condition of if the file has changed since it was last pulled. The server (and I'm assuming the most popular, Apache, here) will check, and if it's been changed, "HTTP 200 OK" and send. If not, "HTTP 304 Not Modified."<P><P>------------------
--
WolfSkunk "STriker" RedWolf
Cheif Officer -- <A HREF="http://stalag99.keenspace.com/" TARGET=_blank>Stalag '99</A> -- <A HREF="http://stalag99.keenspace.com/" TARGET=_blank>http://stalag99.keenspace.com/</A>
This signature is Usenet compliant.

Jia
Regular Poster
Posts: 32
Joined: Fri Jan 01, 1999 4:00 pm
Location: Mountain View, CA USA
Contact:

Post by Jia »

ah thanks a lot! :P

Post Reply