You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yes, I also discovered that dynamics in the stylesheet will cause this side effect. I was building background header image logic into LESS mixins where less_vars filter was substituting the background image url and then discovered every page load caused a rebuild.
If you're just switching protocols, you should do protocol-relative // anyway. But if anything about the request URL changes, you will get a rebuild.
In my mind, if this can even be considered a bug, wp-less caching system should make filenames also hash-based.
#63 Now contains fixes for this. It changes the cache and css build files to contain the protocol in their filename. This means moving from one to the other will generate a worst case scenario of 2 builds, rather than indefinite rebuilding per page load. It also bypasses the issue of changing http to https and vice versa and which URLs to apply it to
Excessive rebuilds can be triggered by mixing or swapping http and https URLs in LESS variables
E.g. visiting
http://example.com
https://example.com
http://example.com
Will trigger rebuilds despite no file or variable changes
The text was updated successfully, but these errors were encountered: