Abyss' Internal Hit Counter

 
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions
View previous topic :: View next topic  
Author Message
pkSML
-


Joined: 29 May 2006
Posts: 955
Location: Michigan, USA

PostPosted: Sat May 05, 2007 9:08 pm    Post subject: Abyss' Internal Hit Counter Reply with quote

$_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 View user's profile Send private message Visit poster's website
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Mon May 07, 2007 9:15 am    Post subject: Re: Abyss' Internal Hit Counter Reply with quote

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 View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group