0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00
ghost/core/server
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
..
adapters Improved JSDoc in default scheduler 2020-12-16 17:25:05 +13:00
api Added forceUpgrade config settings 2021-10-25 09:45:40 +02:00
data Fixed typo in migration to add backupContent permission (#12776) 2021-03-18 14:51:11 +00:00
lib Updated links to ghost.org sites 2021-01-20 09:59:45 +13:00
models 🐛 Fixed Member model removing labels when unset 2021-02-08 09:44:47 +00:00
public Enabled Portal (#12317) 2020-11-03 14:36:21 +05:30
services 🔒 Added a way to hide the secret settings once they are set 2021-04-16 17:34:33 +01:00
translations Updated links to ghost.org sites 2021-01-20 09:59:45 +13:00
views
web Fixed ETag header for admin templates not changing between versions (#13695) 2021-10-28 12:07:13 +01:00
analytics-events.js
ghost-server.js 🐛 Fixed EADDRINUSE error handling on NodeJS >=13 (#12591) 2021-02-16 13:21:21 +00:00
index.js Prevented scheduling of recurring analytics jobs when not using emails (#12441) 2020-12-02 08:17:44 +00:00
overrides.js Improved threading performance on non-SQLite clients 2020-11-30 13:27:40 +13:00
update-check.js