Skip to content

Instantly share code, notes, and snippets.

@ntorga
Last active May 13, 2016 19:25
Show Gist options
  • Save ntorga/d7d8c484036f03e02199 to your computer and use it in GitHub Desktop.
Save ntorga/d7d8c484036f03e02199 to your computer and use it in GitHub Desktop.
<IfModule LiteSpeed>
RewriteEngine on
RewriteCond %{REQUEST_METHOD} ^(HEAD|GET)$
RewriteCond %{REQUEST_URI} !^/(wp-admin|wp-login.php|wp-cron.php|xmlrpc\.php)
RewriteCond %{HTTP_COOKIE} !(comment_author_|wordpressuser_|wp-postpass_|wordpress_logged_in_|wp_woocommerce_session_|wordpress_test_cookie)
RewriteRule .* - [E=Cache-Control:max-age=120]
</IfModule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment