Cache control

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
Todd_Z
Forum Regular
Posts: 708
Joined: Thu Nov 25, 2004 9:53 pm
Location: U Michigan

Cache control

Post by Todd_Z »

I'm creating 100% css layouts [no tables whatsoever] and the whole point is a.) its prettier and b.) smaller file sizes - lower bandwidth. So, since the css page is static and probably will be static for months at a time, i was wondering how to send the highest possible cache values so that the css file is hardly downloaded at all.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

set the expires header on it to farther out.. but not too far out.. :) maybe a week..
AGISB
Forum Contributor
Posts: 422
Joined: Fri Jul 09, 2004 1:23 am

Post by AGISB »

I am pretty sure that apache at least handles it like this anyway and the browser caches the css file.
Post Reply