www.satsig.net

Satellite Internet Forum.

Welcome, Guest. Welcome to anyone who has come from the Space forum. I can cope with one forum, but not two. The Space forum has been deleted       Forum rules.
      Home            Login            Register          
Pages: 1

testing with cache set to 1 month

(Read 1509 times)
Admin1
YaBB Administrator
★★★★★
Offline



Posts: 1094
Jul 10th, 2015 at 2:31pm  
testing line 1
modified with line 2 added after 30 seconds

failed:  problem: not displaying updated forum pages after a change to the page.

If you accessed this forum earlier today and now have problems seeing an up to date page please clear your local cache.

Cache setting for forum pages is now back to access plus 5 seconds.

If anyone knows how to set cache time to 1 month for text/html pages (normal static pages) and to set dynamic pages like these forum pages (which are also type text/html) to cache = 5 seconds I would be pleased to know.

Using Apache, would this work ?

<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpg "access plus 1 month"
ExpiresByType image/jpeg "access plus 1 month"
ExpiresByType image/gif "access plus 1 month"
ExpiresByType image/png "access plus 1 month"
ExpiresByType text/css "access plus 1 month"
ExpiresByType application/pdf "access plus 1 month"
ExpiresByType text/x-javascript "access plus 1 month"
ExpiresByType application/x-shockwave-flash "access plus 1 month"
ExpiresByType image/x-icon "access plus 1 month"
ExpiresByType application/javascript "access plus 1 month"
<Directory "/var/www/cgi-bin/yabb">
    ExpiresByType text/html "access plus 5 seconds"
</Directory>
ExpiresDefault "access plus 1 month"
</IfModule>

Best regards, Eric.
Back to top
« Last Edit: Jul 11th, 2015 at 7:53am by Admin1 »  
WWW  
IP Logged
 
Pages: 1