pardicity3
05-07-2003, 04:02 AM
I have searched far and wide for a solution to the problem of CSS files being cached. Granted, this is something that is probably good and that I should not be tampering with, but I frequently update my CSS files right now (as my site is still slightly under development) and I want the newest version to always be displayed. Unfortunatly this doesn't always happen because my browser likes to cache all the files.
I already prevent caching on my html files that change a lot by using php. This works great, but it's really not applicable to a CSS file.
I thought about using .htaccess but then I heard that mod_expires isn't usually turned on and thus most methods of preventing caching wouldn't work.
I know I myself can prevent my browser from caching, but that's not good enough. I want everyone to be viewing the latest stylesheet. Granted, once I get my stylesheets the way I want them I can let them be cached again, but for now I was wondering if there is anyway to prevent this?
I already prevent caching on my html files that change a lot by using php. This works great, but it's really not applicable to a CSS file.
I thought about using .htaccess but then I heard that mod_expires isn't usually turned on and thus most methods of preventing caching wouldn't work.
I know I myself can prevent my browser from caching, but that's not good enough. I want everyone to be viewing the latest stylesheet. Granted, once I get my stylesheets the way I want them I can let them be cached again, but for now I was wondering if there is anyway to prevent this?