- Issue created by @stjuan627
Tailwind JIT works nicely with Internal Cache Page module. But when there're dynamic query parameters in the request, the internal cache will consider it as a new request, hence trigger the tailwind compiler. However, page content might still be the same with different query params, e.g ?utm=tracking_source, so unnecessary recompilation bring high pressures to the server.
1. Extract the css classes from the content
2. Sort the css classes with alphabet
3. Generate a cache key with classes hash
4. Cache tailwind's output, so next time when the same set of classes are requested, return the cache result immediately
It can also benefit authenticated visitors, since it can work without internal page cache.
Right now only element classes are extracted. Classes in javascript or json string are not handled.
Active
1.0
Code