mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 20:23:44 +08:00
8700c5ee6b
Previously the stylesheet cachebusting hash was based on the maximum mtime of files. This works well in development and during in-container updates (e.g. via docker_manager). However, when a fresh docker image is created for each deploy, the file mtimes will change even if the contents has not. This commit changes the production logic to calculate the cachebuster from the filenames and contents of the relevant assets. This should be consistent across deploys, thereby improving cache hits and improving page load times. |
||
---|---|---|
.. | ||
manager | ||
compiler.rb | ||
importer.rb | ||
manager.rb | ||
watcher.rb |