Hello,
As in the title I am still using v4.2 of the calendar.
(haven't had time to upgrade )
I would like for the .xml file, which contains the calendar information, NOT to be cached by the users browser.
I've googled it and could not find anything solid . . . some ppl mentioned the meta tags, some say they aren't universal . . . blah, blah, uncertain, uncertain, I'm lost
The reason I don't want the xml file cached is because visitors may be viewing old information for several days . . . before their cache is emptied and the new calendar information is sent . . .
Any ideas?
Thanks, Evan
www.northfrontenac.ca
XML Cache for CC Calendar (4.2 version)
Just an FYI, but since version 5.0 is now released there will be no further updates to 4.2
You could probably add the xml file to your robots.txt file to accomplish this.
You could probably add the xml file to your robots.txt file to accomplish this.
Learn the essentials with these quick tips for Responsive Site Designer, Responsive Email Designer, Foundation Framer, and the new Bootstrap Builder. You'll be making awesome, code-free responsive websites and newsletters like a boss.
Thank Scott I understand . . .
I havent tested it yet but I went with editing the .htaccess file and including the following . . .
IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*
# 2 WEEKS
<FilesMatch "\.(ico|pdf|flv|jpg|jpeg|png|gif|js|css|swf)$">
Header set Cache-Control "max-age=604800, public, must-revalidate"
</FilesMatch>
# 2 DAYS
<FilesMatch "\.(html|htm)$">
Header set Cache-Control "max-age=172800, public, must-revalidate"
</FilesMatch>
# 2 HOURS
<FilesMatch "\.(xml|txt)$">
Header set Cache-Control "max-age=7200, must-revalidate"
</FilesMatch>
Hopefully I answered my own question . . .
Cheers.
I havent tested it yet but I went with editing the .htaccess file and including the following . . .
IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*
# 2 WEEKS
<FilesMatch "\.(ico|pdf|flv|jpg|jpeg|png|gif|js|css|swf)$">
Header set Cache-Control "max-age=604800, public, must-revalidate"
</FilesMatch>
# 2 DAYS
<FilesMatch "\.(html|htm)$">
Header set Cache-Control "max-age=172800, public, must-revalidate"
</FilesMatch>
# 2 HOURS
<FilesMatch "\.(xml|txt)$">
Header set Cache-Control "max-age=7200, must-revalidate"
</FilesMatch>
Hopefully I answered my own question . . .
Cheers.
Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.