Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
litespeed_wiki:cache:no-plugin-ip-board [2017/01/03 21:35] Michael Alegre created |
litespeed_wiki:cache:no-plugin-ip-board [2019/02/26 16:20] (current) George Wang |
||
---|---|---|---|
Line 110: | Line 110: | ||
RewriteCond %{REQUEST_URI} !^/admin | RewriteCond %{REQUEST_URI} !^/admin | ||
RewriteCond %{REQUEST_URI} !(css|js|png|gif)$ | RewriteCond %{REQUEST_URI} !(css|js|png|gif)$ | ||
- | RewriteCond %{QUERY_STRING} ^$ | + | RewriteRule .* - [E=Cache-Control:max-age=360] |
- | RewriteRule .* – [E=Cache-Control:max-age=360] | + | |
</code> | </code> | ||
Line 118: | Line 117: | ||
- Do NOT cache for admin user. | - Do NOT cache for admin user. | ||
- Do NOT cache static objects. | - Do NOT cache static objects. | ||
- | - Do NOT cache URL with Query String to stay on the safe side. | ||
- Cache for 6 minutes. | - Cache for 6 minutes. | ||
- For public cache, "X-LiteSpeed-Cache: hit" response header should be seen. | - For public cache, "X-LiteSpeed-Cache: hit" response header should be seen. |