Skip to content

Instantly share code, notes, and snippets.

@alltrad3s
Created October 10, 2016 05:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alltrad3s/c61bea7b87dfa8aac15a9e0d1c8d74b4 to your computer and use it in GitHub Desktop.
Save alltrad3s/c61bea7b87dfa8aac15a9e0d1c8d74b4 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 "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>
# END Cache-Control Headers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment