Ghost/core/server
Kevin Ansfield d7fbf94d91
Fixed ETag header for admin templates not changing between versions (#13680)
refs https://github.com/TryGhost/Team/issues/1175

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 https://github.com/pillarjs/send/issues/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-22 14:25:58 +01:00
..
adapters Enabled passing through a feature name to utilize with a storage adapter 2021-10-21 20:22:45 +13:00
api Handled 404 for Offer not found 2021-10-22 14:22:33 +02:00
data Removed NOT NULL constraint from portal_title (#13659) 2021-10-22 14:14:49 +02:00
lib Inlined package requires to save boot time and memory 2021-10-22 09:57:59 +02:00
models Inlined package requires to save boot time and memory 2021-10-22 09:57:59 +02:00
services Inlined package requires to save boot time and memory 2021-10-22 09:57:59 +02:00
views Added new, simpler, linear boot process 2021-02-08 11:56:44 +00:00
web Fixed ETag header for admin templates not changing between versions (#13680) 2021-10-22 14:25:58 +01:00
analytics-events.js Added comments to all usages of lib/common/events 2021-07-07 16:02:44 +01:00
ghost-server.js Switch to @tryghost/debug, remove ghost-ignition 2021-06-15 17:24:22 +01:00
notify.js Change to use @tryghost/logging 2021-06-15 15:59:11 +01:00
overrides.js Set global Luxon timezone override to UTC 2021-10-20 09:19:29 +02:00
run-update-check.js Removed remaining usage of i18n & translation file 2021-10-15 11:39:07 +01:00
update-check.js Inlined package requires to save boot time and memory 2021-10-22 09:57:59 +02:00