Ghost/test/utils
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
..
fixtures Fixed ETag header for admin templates not changing between versions (#13680) 2021-10-22 14:25:58 +01:00
mocks Colocated mock-express style utilities 2021-10-20 13:18:35 +01:00
admin-utils.js Improved dev tooling (#13118) 2021-07-05 20:02:22 +01:00
api.js Extracted promise libs and history into @tryghost/promise 2020-08-11 18:44:21 +01:00
assertions.js Updated var declarations to const/let and no lists 2020-04-29 16:51:13 +01:00
configUtils.js Fixed "no-shadow" eslint warning in tests 2020-10-19 17:45:26 +13:00
db-utils.js Switch to @tryghost/debug, remove ghost-ignition 2021-06-15 17:24:22 +01:00
e2e-utils.js Moved URL service to backend 2021-10-19 07:29:09 +13:00
fixture-utils.js Added API tests for custom theme settings (#13519) 2021-10-08 16:18:49 +01:00
index.js Colocated mock-express style utilities 2021-10-20 13:18:35 +01:00
overrides.js Improved dev tooling (#13118) 2021-07-05 20:02:22 +01:00
redirects.js Split test utilities out into separate files 2021-02-16 20:17:04 +00:00
url-service-utils.js Moved URL service to backend 2021-10-19 07:29:09 +13:00
urlUtils.js Swapped out usage of stubUrlUtils for configUtils 2021-06-21 11:07:30 +01:00