0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00
ghost/core
Kevin Ansfield 21ac7bb0f7
Fixed ETag header for admin templates not changing between versions (#13695)
refs https://github.com/TryGhost/Team/issues/1175
backports https://github.com/TryGhost/Ghost/pull/13680

We found the ETag header sent when serving the Admin template for /ghost/ was not changing between versions which after an upgrade could result in out of date cached content being served containing links to JS/CSS files that no longer existed.

The culprit is weak etags served by Node's `send` package, coupled with Admin template filesize not changing between versions and `npm pack` setting a fixed modification date for every file. See pillarjs/send#176 for more details.

- updated the Admin app's controller to read the template and generate an md5 hash of the contents so we can serve a strong ETag header value when serving the `/ghost/` html
2021-10-28 12:07:13 +01:00
..
client@50d59823dc Updated Admin to v3.42.6 2021-09-23 10:47:53 +01:00
frontend 🔒 Fixed member email change vulnerability 2021-09-23 10:46:00 +01:00
server Fixed ETag header for admin templates not changing between versions (#13695) 2021-10-28 12:07:13 +01:00
shared Add ElasticSearch logging to v3 2021-03-03 17:55:36 +00:00
index.js Refactored server announce functions to be clearer 2020-08-09 17:25:15 +01:00