From 937b0b450fd78fd0f3840f54e38125504345b11a Mon Sep 17 00:00:00 2001 From: ansuz Date: Thu, 10 Feb 2022 13:12:07 +0530 Subject: [PATCH] better checkup test --- www/checkup/main.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/www/checkup/main.js b/www/checkup/main.js index 520320372..b7b703595 100644 --- a/www/checkup/main.js +++ b/www/checkup/main.js @@ -1075,7 +1075,11 @@ define([ assert(function (cb, msg) { var header = 'Cache-Control'; msg.appendChild(h('span', [ - header, + 'Assets requested without a version parameter should be served with a ', + code('no-cache'), + ' value for the ', + code("Cache-Control"), + ' header.', ])); // Cache-Control should be 'no-cache' unless the URL includes ver= Tools.common_xhr('/', function (xhr) { @@ -1087,7 +1091,9 @@ define([ assert(function (cb, msg) { var header = 'Cache-Control'; msg.appendChild(h('span', [ - header, + 'Assets requested with a version parameter should be served with a long-lived ', + code('Cache-Control'), + ' header.', ])); // Cache-Control should be 'max-age=' if the URL includes 'ver=' Tools.common_xhr('/?ver=' +(+new Date()), function (xhr) {