Answer the question
In order to leave comments, you need to log in
Yii, CSS & JS. How to organize version control when caching?
We expose caching for scripts and styles in nginx
location ~ \.(js|css)$ {
expires max;
}
Answer the question
In order to leave comments, you need to log in
aaronfrancis.com/blog/2013/6/19/yii-and-the-asset-... isn't that an option? Rails uses the Assets Pipeline to version elements and give them unique names when compiled, so you can see the latest changes even with caching enabled.
Add ?r123 for example (connected via registerPackage). Which is somehow not very convenient if the project has a lot of styles and scripts.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question