We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

Leverage browser caching | Forum

Topic location: Forum home » Support » General Questions
Durlabh Ashok
Durlabh Ashok Oct 22 '12
Setting an expiry date or a maximum age in the HTTP headers for static resources instructs the browser to load previously downloaded resources from local disk rather than over the network.Many css,JavaScript and images have a short freshness lifetime only of 20 mins.They should be  at least one week.Please help me to make it 7 days.thanks
Alia Team
Alia Oct 23 '12
Durlabh, I can not give you qualified reply to this question. Better contacting your hosting company.

Here are a couple of links  where you can find instructions though.
1. http://howtounix.info/howto/How-to-Leverage-browser-caching
2. http://stackoverflow.com/...n-apache-or-htaccess


Durlabh Ashok
Durlabh Ashok Oct 23 '12

thanks


Durlabh Ashok
Durlabh Ashok Oct 23 '12

please assist  me  how  to  How to enable gzip compression on Apache...Thanks


Purusothaman Ramanujam
If you are on hosted service, you service provider can help you on this.
Kяuncн Leader
Kяuncн May 28 '13

Quote from Aliia Durlabh, I can not give you qualified reply to this question. Better contacting your hosting company.

Here are a couple of links  where you can find instructions though.
1. http://howtounix.info/howto/How-to-Leverage-browser-caching
2. http://stackoverflow.com/...n-apache-or-htaccess




Quote from Aliia Durlabh, I can not give you qualified reply to this question. Better contacting your hosting company.

Here are a couple of links  where you can find instructions though.
1. http://howtounix.info/howto/How-to-Leverage-browser-caching
2. http://stackoverflow.com/...n-apache-or-htaccess



Whoa!!, from a 81/100 to 93/100 just by adding to .htaccess:

Header unset Pragma
FileETag None
Header unset ETag

<FilesMatch "\.(ico|jpg|jpeg|png|gif|js|css|swf|pdf|flv|mp3)$">
<IfModule mod_expires.c>
 ExpiresActive on
 ExpiresDefault "access plus 14 days"
 Header set Cache-Control "public"
</IfModule>
</FilesMatch>
<FilesMatch "\.(html|htm|xml|txt|xsl)$">
 Header set Cache-Control "max-age=7200, must-revalidate"
</FilesMatch>

Only thing left that will grade me at 100/100 "according to Pingdom" is to:
Serve static content from a cookieless domain.
however that is done, and if it means I need to pay for cloud sever service then I'll stick w/my 93/100 LoL
The Forum post is edited by Kяuncн May 28 '13