View Single Post
Old 04-21-2010, 07:57 PM  
GrouchyAdmin
Now choke yourself!
 
GrouchyAdmin's Avatar
 
Industry Role:
Join Date: Apr 2006
Posts: 12,085
Quote:
Originally Posted by camperjohn64 View Post
Ok I will research the 304. Is this for HTML files also?

At the moment I am only doing this:
Code:
            header("HTTP/1.1 200 OK");
            header("Status: 200 OK");
            header("Pragma: public");
            header("Cache-control: public");
            header("Accept-Ranges: bytes");
            header('Last-Modified: Sat, 03 Mar 1973 09:46:40 GMT');
            header('Expires: Wed, 18 May 2033 03:33:20 GMT');
            header("Content-Length: " . strlen($content));
            header("Content-Type: $content_type");
            header("Connection: close");
            
            echo $content;
I'm pretty sure that did piss them off. You're using 2 different forms of 'no cache', but the checksum of the file is always the same. You should be using eTags and sending 304 (not modified since) for them to pick it up. If you've not already been marked rogue.
__________________
GrouchyAdmin is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote