Problem
When page caching is turned on every page is cached with some stylesheet link. So all anonymous users see the same "cached" style everytime they load that page.
Proposed resolution
I propose to add new path route, some 'styleswitcher/active.css', and to add it to <head> instead of real CSS file. This path should somehow redirect to real CSS file depending on each user's active style.
Remaining tasks
- Styleswitcher block with style links is cached with the same active list item. I propose to move adding 'active' class from PHP to JS.
- It will be necessary to clear pages cache on each change of styleswitcher configs.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | styleswitcher-cached_pages_active_style-2258267-2.patch | 5.36 KB | pingwin4eg |
Comments
Comment #1
pingwin4egComment #2
pingwin4egComment #4
pingwin4eg