OZONE Asylum
Forums
Getting to know the Grail
Recent Visit Pill Color Reset Issue
This page's ID:
21361
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
One tip on my side: I know TP uses special headers for caching, as the Asylum needs pages to be refreshed as often as possible. I know that because he kindly gave me that chunk of code for my homepage. I'd suggest passing the little gifs through a php script, without gd I mean, just plain php. In a php document, just send out a gif content-type header, and different headers for caching, the fopen the real gif file, and pass it thru (would it be fpassthru? I don't remember the exact syntax). This will make the gifs caching different from the pages caching, so no refresh for the gifs until they really are re-requested. ... It could be tricky though: what I don't know is how to make gifs caching match the duration of a browser session, and I wonder what will happen if the page headers override the gif headers: as they are separate http requests, this shouldn't be an issue. And this said, I also think such a caching problem will casually happen again, no matter how good your solution is: say the client is on dhcp and renews his ip while browsing, the files will be re-requested. Many things could get the images to be re-requested, the first thing to try being... separating the way they are cached (and making it as long as possible) from the way pages are (not) cached. My 2 cents. And of course, the chunk of code belongs to TP, so the decision to share it belongs to him (in other words I can't make it public as is, eventhough I know he wouldn't mind, I have to respect his mental property). But I can give this to you: http://www.mnot.net/cache_docs/ Which contains everything you need. my 2 cents.
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »