rmrevin / yii2-minify-view

Yii2 View component with minification css & js
MIT License
191 stars 67 forks source link

Determining minification #50

Closed jaiminmoslake7020 closed 6 years ago

jaiminmoslake7020 commented 7 years ago

@rmrevin I want to know how it determines to re-minify all the files again. As it is re-minifying my asset bundles on random requests. Which has same asset bundles? What will happen when there is no change in assets. Will it going to minify them again? Does it use timestamp with files?

rmrevin commented 6 years ago

Component compresses only changed files. To do this, it checks either the modification date of the file or the hash of a file (configurable with the setting View->fileCheckAlgorithm)