Answer the question
In order to leave comments, you need to log in
Why does Laravel Elixir create files with hashes in public/build/assets (much like in Yii)?
Let's say we create a file in laravel-elixir in public/assets/some.css
.
This creates a copy of this file in public/build/assets/some-filehash.css
, which is called from the view when using elixir('assets/some.css')
.
It is not clear how this is better than the option if it were elixir('assets/some.css')
given away public/assets/some.css?v=filehash
.
Approximately similar situation in Yii.
Why make copies of files if you can add a parameter to the css files in the view so that the old version is not taken from the cache?
Answer the question
In order to leave comments, you need to log in
In general, there are several advantages to separate files over adding a get parameter to 1 file:
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question