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
I found that because the compressed resources are suffixed by a '?v=' parameter that has the file creation time, effectively resource caching is defeated.
Why is this? The name of the file is already made of the MD5 of the file content, so why is there another parameter which is not really used anyway? I assume you tried to defeat the resource caching if the file was modified, but in that case, the MD5 would differ anyway. By adding an URL parameter, nothing gets cached at all.
If I am correct, it would suffice to just remove the code lines where the '?v=' is added.
The text was updated successfully, but these errors were encountered:
Yes, this is done to clear the cache. And it need not be removed.
The logic is that under any scenario, checked md5 just from a set of files. If a single file is updated, the yii2 change it ?v=value and then md5 of the data set in the same change. This is easy to do and does not require the reading of all the files and comparing them md5 values.
I found that because the compressed resources are suffixed by a '?v=' parameter that has the file creation time, effectively resource caching is defeated.
Why is this? The name of the file is already made of the MD5 of the file content, so why is there another parameter which is not really used anyway? I assume you tried to defeat the resource caching if the file was modified, but in that case, the MD5 would differ anyway. By adding an URL parameter, nothing gets cached at all.
If I am correct, it would suffice to just remove the code lines where the '?v=' is added.
The text was updated successfully, but these errors were encountered: