MyBB Internal: One or more warnings occured. Please contact your administrator for assistance.
Cache static content - Help With The Code
Current time: 08-15-2020, 04:17 PM Hello There, Guest! (LoginRegister)

Post Reply 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Cache static content - Help With The Code
12-09-2012, 05:42 AM
Post: #1
Cache static content - Help With The Code
When I tested my site I got all "A" except for the Cache Static Content which was "F".
It changed to "D" when I added the following code:

<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/gif A31536000
ExpiresByType image/jpg A31536000
ExpiresByType image/jpeg A31536000
ExpiresByType image/png A31536000
ExpiresByType image/bmp A31536000
ExpiresByType text/css A31536000
ExpiresByType text/javascript A31536000
ExpiresByType application/javascript A31536000
ExpiresByType application/x-javascript A31536000

However I still need it to be "A".

I also have "Header set Expires":

<FilesMatch "\.(ico|pdf|flv|jpg|jpeg|png|gif|bmp|js|css|swf)$">
Header set Expires "Wed, 31 Dec 2014 20:00:00 GMT"

Any ideas where I go wrong or what do I need to change?

I'm using MaxCDN if it matters.
Find all posts by this user
Quote this message in a reply
Post Reply 

Messages In This Thread
Cache static content - Help With The Code - jordan6 - 12-09-2012 05:42 AM

Forum Jump:

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