Skip to content

Instantly share code, notes, and snippets.

@alltrad3s
Created October 10, 2016 05:10
Show Gist options
  • Save alltrad3s/d1c08ddb0509df2bf7ec9d4ddb4df9cd to your computer and use it in GitHub Desktop.
Save alltrad3s/d1c08ddb0509df2bf7ec9d4ddb4df9cd to your computer and use it in GitHub Desktop.
Como optimizar WordPress con .htaccess
# BEGIN Cache-Control Headers
<ifModule mod_headers.c>
<filesMatch "\.(ico|jpe?g|png|gif|swf)$">
Header set Cache-Control "public"
</filesMatch>
<filesMatch "\.(css)$">
Header set Cache-Control "public"
</filesMatch>
<filesMatch "\.(js)$">
Header set Cache-Control "private"
</filesMatch>
<filesMatch "\.(x?html?|php)$">
Header set Cache-Control "private, must-revalidate"
</filesMatch>
</ifModule>
# END Cache-Control Headers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment