Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Last revision Both sides next revision
litespeed_wiki:cache:lscwp:browser_cache [2017/09/25 14:32]
Lisa Clarke [Browser Caching]
litespeed_wiki:cache:lscwp:browser_cache [2018/01/18 19:34]
Lisa Clarke [At the Server Level]
Line 24: Line 24:
 Set **Enable Expires** to ''​Yes''​. Set **Enable Expires** to ''​Yes''​.
  
-**Expires Default** may be set to a number of seconds or left blank if you don't wish to provide a catch-all expiration.+**Expires Default** may be set to a number of seconds or left blank if you don't wish to provide a catch-all expiration. ​
  
-Set **Expires by Type** to a string similar to the example above, changing any file types or expiration times as desired. The example enables browser caching for all images, css, and javascript, and it sets all of their expirations to 604800 seconds (or one week). If you leave **Expires Default** blank, then you must specifically include every file type you want cached by the browser in **Expires by Type**+**Note**: Be careful with this setting. It applies to //all// types of content, even HTML. This causes potential conflicts with LSCache, and can result in stale content being served to the user. //If you are running LSCache, always leave **Expires Default** unset.// 
 + 
 +Set **Expires by Type** to a string similar to the example above, changing any file types or expiration times as desired. The example enables browser caching for all images, css, and javascript, and it sets all of their expirations to 604800 seconds (or one week). If you leave **Expires Default** blank (as you should, if you're using LSCache), then you must specifically include every file type you want cached by the browser in **Expires by Type**
  
  • Admin
  • Last modified: 2019/01/20 09:04
  • by Lucas Rolff