Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
litespeed_wiki:cache:no-plugin-ip-board [2017/02/14 21:41]
George Wang [Create Rewrite Rules for guest/public caching]
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.
  • Admin
  • Last modified: 2019/02/26 16:20
  • by George Wang