discourse/lib/stylesheet
David Taylor 8700c5ee6b
PERF: Make stylesheet hashes consistent between deploys (#18909)
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.
2022-11-07 16:13:35 +00:00
..
manager PERF: Make stylesheet hashes consistent between deploys (#18909) 2022-11-07 16:13:35 +00:00
compiler.rb DEV: Upgrade to Rails 7 2022-04-28 11:51:03 +02:00
importer.rb DEV: Upgrade to Rails 7 2022-04-28 11:51:03 +02:00
manager.rb PERF: Make stylesheet hashes consistent between deploys (#18909) 2022-11-07 16:13:35 +00:00
watcher.rb DEV: Fix stylesheet watcher (#16635) 2022-05-04 11:58:52 -04:00