Your IP : 216.73.216.68


Current Path : /home/jeromecohp/www/aesecure/premium/setup/snippets/
Upload File :
Current File : /home/jeromecohp/www/aesecure/premium/setup/snippets/83-optimize_expiresbytype.htaccess

#aeSecure 8.3
<IfModule mod_headers.c>
   # Keep the connection alive (not really related to expirations but really increase download speed
   Header set Connection keep-alive
</IfModule>

<IfModule mod_expires.c>

   ExpiresActive On

   # Default expiration: 1 hour after request
   ExpiresDefault "now plus 1 hour"

   # CSS and JS expiration
   ExpiresByType text/css "access 1 month"
   ExpiresByType text/javascript "access 1 month"
   ExpiresByType application/javascript "access 1 month"
   ExpiresByType application/x-javascript "access 1 month"

   # htc files  (css3pie)
   ExpiresByType text/x-component         "access 1 month"

   # rss feed
   ExpiresByType application/rss+xml       "access 4 hour"

   # webfonts
   ExpiresByType font/truetype             "access 1 year"
   ExpiresByType font/opentype             "access 1 year"
   ExpiresByType application/x-font-woff   "access 1 year"
   ExpiresByType image/svg+xml             "access 1 year"
   ExpiresByType application/vnd.ms-fontobject "access 1 year"
   ExpiresByType application/x-font-ttf    "access 1 year"

   # Image files expiration
   AddType image/vnd.microsoft.icon .cur
   ExpiresByType image/svg+xml "access 1 month"
   ExpiresByType image/gif "access 1 month"
   ExpiresByType image/jpg "access 1 month"
   ExpiresByType image/jpeg "access 1 month"
   ExpiresByType image/png "access 1 month"
   ExpiresByType image/webp "access 1 month"
   ExpiresByType image/vnd.microsoft.icon "access 1 year"
   ExpiresByType image/x-icon "access 1 year"
   ExpiresByType image/ico "access 1 year"
   ExpiresByType image/icon "access 1 year"
   ExpiresByType text/ico "access 1 year"
   ExpiresByType application/ico "access 1 year"

   # Flash
   ExpiresByType application/x-shockwave-flash "access plus 2 months"
   ExpiresByType image/swf "access plus 2592000 seconds"

   # Files
   ExpiresByType application/pdf "access 1 week"
   ExpiresByType application/x-gzip "access 1 month"

</IfModule>

# Perhaps the MIME type of SWF is incorrect, in this case, the FileMatch will do the job
<IfModule mod_headers.c>
   <FilesMatch "\.(swf)$">
      Header set Expires "access plus 2592000 seconds"
   </FilesMatch>
</IfModule>