MyBB Internal: One or more warnings occured. Please contact your administrator for assistance.
Cache static content - Updating content before expired time
Current time: 02-19-2020, 03:17 PM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Cache static content - Updating content before expired time
10-31-2012, 01:56 AM
Post: #1
Cache static content - Updating content before expired time
Greetings,

My current htaccess file includes:

<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/gif A604800
ExpiresByType image/jpg A604800
ExpiresByType image/jpeg A604800
ExpiresByType image/png A604800
ExpiresByType video/mp4 A604800
ExpiresByType image/x-icon A604800
ExpiresByType image/icon A604800
ExpiresByType application/x-shockwave-flash A604800
ExpiresByType video/x-flv A604800
ExpiresByType application/x-javascript A604800
ExpiresByType application/javascript A604800
</IfModule>

I have some html pages and css files that I update frequently and other html/css files that I don't change at all and don't expect to for a long time.

I would like to include Expires for html/css but after I updated a file and upload it to my hosting server, I would like to have my visitors' browser not to request the file(s) from cache and wait the 7 day expire time to check for any changes but rather make the request from the server ignoring the cache control Expire time.

I appreciate all assistance. Thanks.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Cache static content - Updating content before expired time - Arris - 10-31-2012 01:56 AM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)