Symfomany/cinema/master/.htaccess - Htaccess File

Symfomany/cinema/master/.htaccess

## contrôle du cache navigateur - Expire headers
<IfModule mod_expires.c>
  ExpiresActive On
  ExpiresDefault "access plus 7200 seconds"
  ExpiresByType image/jpg       "access plus 1 week"
  ExpiresByType image/jpeg       "access plus 1 week"
  ExpiresByType image/png       "access plus 1 week"
  ExpiresByType image/gif       "access plus 1 week"
  ExpiresByType image/svg+xml      "access plus 1 week"
  AddType image/x-icon .ico
  ExpiresByType image/ico       "access plus 1 week"
  ExpiresByType image/icon       "access plus 1 week"
  ExpiresByType image/x-icon       "access plus 1 week"
  ExpiresByType text/css         "access plus 1 week"
  ExpiresByType text/javascript     "access plus 1 week"
  ExpiresByType text/html       "access plus 7200 seconds"
  ExpiresByType application/xhtml+xml   "access plus 7200 seconds"
  ExpiresByType application/javascript   "access plus 1 week"
  ExpiresByType application/x-javascript   "access plus 1 week"
  ExpiresByType application/x-shockwave-flash "access plus 1 week"
</IfModule>

<IfModule mod_headers.c>

<FilesMatch "\.(ico|jpe?g|png|gif|swf)$">
Header set Cache-Control "max-age=2592000, public"
</FilesMatch>

<FilesMatch "\.(css)$">
Header set Cache-Control "max-age=604800, public"
</FilesMatch>

<FilesMatch "\.(js)$">
Header set Cache-Control "max-age=216000, private"
</FilesMatch>

<FilesMatch "\.(x?html?|php)$">
Header set Cache-Control "max-age=600, private, must-revalidate"
</FilesMatch>

</IfModule>

Header unset ETag
FileETag none

On Github License

Files

Download PDF of Htaccess file

Comments

Apache