amilner42 / code-tidbit

Share Programming Knowledge Better
GNU General Public License v3.0
9 stars 1 forks source link

Javascript/CSS needs to be force-reloaded on new deploys because of cache #204

Closed amilner42 closed 7 years ago

amilner42 commented 7 years ago

To prevent this, we need to add the version number / the hash of the file content into the file name when we deploy so that it automatically is forced to fetch the new content.

I think having the hash would be ideal so that old files that are the same can still be cached, but the version number may be easier to implement. Either are better than the current situation of users have broken websites upon deploys...