Apache mod_expires for media-files


/ Published in: Apache
Save to your folder(s)



Copy this code and paste it in your HTML
  1. <ifModule mod_expires.c>
  2. <filesmatch "\.(ico|flv|jpg|jpeg|png|gif|js|css|swf)$">
  3. ExpiresActive on
  4. ExpiresDefault "access plus 1 year"
  5. </filesmatch>
  6. </ifModule>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.