less / less.js

Less. The dynamic stylesheet language.
http://lesscss.org
Apache License 2.0
17.02k stars 3.41k forks source link

prevent caching of less files when using clientside rendering #3502

Closed scanacs-agruhn closed 3 years ago

scanacs-agruhn commented 4 years ago

How can we achieve disable the browser caching for less files when we use the clientside rendering mechanism in our browser.

In earliers versions we use:

@random: Math.random(); @import 'variables.less?@{random}';

I also try to get it working with plugin http://lesscss.org/features/#plugin-atrules-feature but the expression is evaluated after import of less files takes place and the random number is not generated.

matthew-dean commented 4 years ago

@scanacs-awuttig Does the latest (3.11.3) still have this issue?

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.