MyBB Internal: One or more warnings occured. Please contact your administrator for assistance.
"FAILED - (No max-age or expires)" - for homepage, index page?
Current time: 02-21-2020, 05:06 AM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
"FAILED - (No max-age or expires)" - for homepage, index page?
10-17-2014, 07:55 AM (This post was last modified: 10-17-2014 07:58 AM by postcd.)
Post: #1
"FAILED - (No max-age or expires)" - for homepage, index page?
Hi,

it appears i have all basic webpage elements cached using "Cache-Control max-age"

but webpagetest.org returns only one that is "bad"?

Quote:FAILED - (No max-age or expires) - http://mydomain.com/

Current rules:
Code:
# 1 YEAR
<FilesMatch "\.(flv|ico|pdf|avi|mov|ppt|doc|mp3|wmv|wav)$" >
Header set Cache-Control "max-age=31536000, public"
</FilesMatch>

# 1 WEEK
<FilesMatch "\.(jpg|jpeg|png|gif|swf|js|css)$">
Header set Cache-Control "max-age=604800, public"
</FilesMatch>

# 3 HOUR
<FilesMatch "\.(txt|xml)$">
Header set Cache-Control "max-age=10800"
</FilesMatch>

# 5 MINUTES
<FilesMatch "\.(html|htm)$">
Header set Cache-Control "max-age=300"
</FilesMatch>

# NEVER CACHE - notice the extra directives
<FilesMatch "\.(php|cgi|pl)$">
Header set Cache-Control "max-age=0, private, no-store, no-cache, must-revalidate"
</FilesMatch>

So which rule i may add to cache that homepage please?
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
"FAILED - (No max-age or expires)" - for homepage, index page? - postcd - 10-17-2014 07:55 AM

Forum Jump:


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