Happy Christmas to you all.
Satellite Internet home page

Satellite Internet Forum.

Welcome, Guest.
Welcome to this satellite broadband discussion forum. Wherever you are and whatever your problem we are here to help each other. Connecting to the internet via satellite is not always easy but is critically important to those in remote places or with poor terrestrial infrastructure. Both service providers and customers are encouraged to contribute. Register at the bottom of the forum home page if you wish to contribute or ask question. May 2018: GDPR: Updates to Privacy and Cookies policies: As you may know, a new EU data protection law called GDPR will apply from Friday 25th May 2018. As part of satsig's commitment to protecting the privacy of site visitors and forum members, I have therefore updated the Privacy and Cookie policies. There are now links leading to these policies: Disclaimer, Terms of Use and Privacy, Forum User Agreement, Forum Rules and Cookies at the bottom of the home page and all forum pages. Read the Forum rules.
      Satellite internet forum          
Pages: 1

testing with cache set to 1 month

(Read 785 times)
Admin1
YaBB Administrator
*****
Offline


Personal text from: Profile,
Options, Top line

Posts: 877
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