PDA

View Full Version : Web Stats


Jess
11-11-01, 07:59 PM
Could someone explain to me these codes in the stats?:

Hits by Response Code
---------------------
Code 200 - OK 678
Code 304 - Not Modified 83
Code 404 - Not Found 13

How is code 304 (Not Modified) different from code 200 (OK)?

And I'm fairly certain I don't have any pages on my site that can't be found, so why is code 404 showing up? :confused:

sophiespo
11-12-01, 02:55 AM
someone could of typed in a url for a page on your domain that doesnt exist maybe??
or if you have a broken image somewhere that might show up as a 404. sounds strange but its happened to me.
thats all I could think of....

sophie

Twevster
11-13-01, 03:29 PM
200 - OK means the request succeeded normally

304 - Not modified means that a web-page with a meta tag "pragma: no-cache" (which tells the browser/web server not to cache the file) is requested from and the server found the file in the cache to be the same one as requested... therefore it draws it from cache rather than grabbing it from the web to save bandwidth/usage costs. [basically a successful webpage]

404 - Not found means what it says - the document requested was not found on the server.

Jess
11-14-01, 01:14 AM
Thanks, Twevster. But....

I don't have any meta tags with "pragma: no-cache" so I don't know why I'm seeing code 304.

I also don't have any dead links so I should not have any code 404s.

:rolleyes:

Twevster
11-14-01, 12:46 PM
I think the 304 status is more to do with the internal dealings of the webserver (just treat it as a successful request).

You don't necessarily have to have broken links to incur a 404. Someone could request www.yourdomain.com/this_is_what_i_think.html and finding it isn't there.. it incurs a 404. It doesn't necessarily have to be through a link off one of your pages.

There are web services that travel your website to spot dead links if your interested.

sophiespo
11-14-01, 04:31 PM
or you could look in your error_log in your logs folder. Thatll show you what pages were requested, but don't exist.

sophie

VBman
11-14-01, 06:47 PM
While we're on the subject, does anyone know what these other codes mean? Here's the codes listed on my stats:

Code 200 - OK 500
Code 206 - Partial Content 2
Code 301 - Moved Permanently 4
Code 304 - Not Modified 171
Code 404 - Not Found 83