0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00
ghost/core/server/web
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
..
admin Fixed ETag header for admin templates not changing between versions (#13680) 2021-10-22 14:25:58 +01:00
api Improved Ghost boot time and memory usage by lazy loading routes 2021-10-15 17:52:07 +02:00
members Added new offers endpoint on members API 2021-10-15 11:46:27 +05:30
oauth Inlined package requires to save boot time and memory 2021-10-22 09:57:59 +02:00
parent Moved server/web/site to frontend/web 2021-10-21 19:28:18 +01:00
shared Moved URL service to backend 2021-10-19 07:29:09 +13:00
index.js
well-known.js Inlined package requires to save boot time and memory 2021-10-22 09:57:59 +02:00