Forum

 
  Back to OzPolitic.com   Welcome, Guest. Please Login or Register
  Forum Home Album HelpSearch Recent Rules LoginRegister  
 

Page Index Toggle Pages: 1
Send Topic Print
file caching (Read 1214 times)
freediver
Gold Member
*****
Offline


www.ozpolitic.com

Posts: 53201
At my desk.
file caching
Dec 25th, 2012 at 7:20pm
 
I have added some file caching to the whole site to reduce server load and hopefully speed up the site. This means that image files will be cached by your browser for up to a week - this means that you will not be downloading all the little pictures every time you browse to a new page. html files are cached for 12 hours. Script files (ie forums) have no caching information sent, so this means that your browser decides on caching. I am not sure whether this is a good idea. I am not even sure whether it is a change from the old configuration.

If the forum appears to not be updating, try hitting ctrl-F5. This forces a refresh of all files. If this gives you a new updated version, it means your browser was caching the forum. Please let me know if this happens so I can alter the setting appropriately.

For those who are interested, these are the settings I am using, in the root htaccess file:

Code (HTML):
<filesmatch "\.(flv|gif|ico|jpg|jpeg|png|swf|bmp|giff|css|js|pdf|txt)$">
header set Cache-Control "max-age=604800"
</filesmatch>
<filesmatch "\.(html|htm)$">
header set Cache-Control "max-age=43200"
</filesmatch>
<filesmatch "\.(cgi|fcgi|php|pl|scgi|spl)$">
header unset Cache-Control
<ifmodule mod_expires.c>
expiresactive off
</ifmodule>
</filesmatch>
<ifmodule mod_expires.c>
expiresdefault "access plus 24 hours"
</ifmodule> 



Any advice would be appreciated.
Back to top
« Last Edit: Dec 25th, 2012 at 7:29pm by freediver »  

People who can't distinguish between etymology and entomology bug me in ways I cannot put into words.
WWW  
IP Logged
 
Ex Dame Pansi
Gold Member
*****
Offline


Australian Politics

Posts: 24168
Re: file caching
Reply #1 - Dec 26th, 2012 at 6:54am
 
I'm not caching onto this freediver

Back to top
 

"When the power of love overcomes the love of power, the world will know peace." Hendrix
andrei said: Great isn't it? Seeing boatloads of what is nothing more than human garbage turn up.....
 
IP Logged
 
cods
Gold Member
*****
Offline


Australian Politics

Posts: 88048
Re: file caching
Reply #2 - Dec 26th, 2012 at 8:24am
 
Ex Dame Pansi wrote on Dec 26th, 2012 at 6:54am:
I'm not caching onto this freediver





hahahahaha ignorance is bliss as far as I am concerned..
Back to top
 
 
IP Logged
 
Page Index Toggle Pages: 1
Send Topic Print