Satellite Internet forum
https://www.satsig.net/cgi-bin/yabb/YaBB.pl
Anything else >> General and other topics >> testing with cache set to 1 month
https://www.satsig.net/cgi-bin/yabb/YaBB.pl?num=1436535076

Message started by Admin1 on Jul 10th, 2015 at 2:31pm

Title: testing with cache set to 1 month
Post by Admin1 on 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.

Powered by YaBB 2.5.2!
YaBB Forum Software © 2000-. All Rights Reserved.