Australian Politics Forum
http://www.ozpolitic.com/forum/YaBB.pl
General Discussion >> Feedback >> file caching
http://www.ozpolitic.com/forum/YaBB.pl?num=1356427243

Message started by freediver on Dec 25th, 2012 at 7:20pm

Title: file caching
Post by freediver on 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.

Title: Re: file caching
Post by pansi1951 on Dec 26th, 2012 at 6:54am
I'm not caching onto this freediver

http://www.youtube.com/watch?v=kAG39jKi0lI

Title: Re: file caching
Post by cods on Dec 26th, 2012 at 8:24am

Ex Dame Pansi wrote on Dec 26th, 2012 at 6:54am:
I'm not caching onto this freediver

http://www.youtube.com/watch?v=kAG39jKi0lI




hahahahaha ignorance is bliss as far as I am concerned..

Australian Politics Forum » Powered by YaBB 2.5.2!
YaBB Forum Software © 2000-2026. All Rights Reserved.