View previous topic :: View next topic |
Author |
Message |
pkSML -
Joined: 29 May 2006 Posts: 955 Location: Michigan, USA
|
Posted: Sat May 05, 2007 9:08 pm Post subject: Abyss' Internal Hit Counter |
|
|
$_SERVER['X_ABYSS_STATS_HOST_HTML'];
I'm using a PHP script to show the HTML and image hits to a host. I noticed that when I refresh the page, I get 2 HTML hits for one HTML page.
So, with a little research, the HTML page returned a 200 status code. Then the one image on the page returned a 304 (Not Modified) status code.
Why is a 304 status code considered an HTML hit?
Could Abyss automatically know that a JPG request is an image??? _________________ Stephen
Need a LitlURL?
http://CodeBin.yi.org |
|
Back to top |
|
 |
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Mon May 07, 2007 9:15 am Post subject: Re: Abyss' Internal Hit Counter |
|
|
pkSML,
Any 304 reply will generate a response with a HTML body containing a human readable transcription of the error code. That's why you get a hit for every 304 reply.
Note also that the stat counter relies on the final MIME type of the reply (and does not care about the file that was requested - if we'll do that, it'll be cause a lot of problems with redirection and rewritten URLs). _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
 |
|