We are facing a caching issue for the pre-optimized-min file generated by the Sitecore cli gulp task. As this task adds/updates the file in the Sitecore, which only updates the timestamp of the file.
The problem resides in the extension method of ItemExtensions below, which always uses created date for versioning, which never changes. This results in caching issue as the URL and version never change.
One possible solution is I overwrite the caller methods with the new extension method, the second option is to update the gulp file to always delete the file before upload, however, I would like to know how other folks are dealing with this problem.