Stylesheet switching and caching

I use W3TC, so these are approaches that I can come up with it for it:

  1. Fragment caching to exclude that part of page, will reduce cache effectiveness overall.

  2. Identify page with switched stylesheet by query argument, disable caching of such pages.

  3. Identify page with switched stylesheet by URL endpoint, disable caching of such by mask.

  4. Implement stylesheet switch via JavaScript (not really W3TC-specific).

Leave a Comment