From 426a7a597e54d4bdbf6235a0c8e71214c600e8a3 Mon Sep 17 00:00:00 2001 From: Max Duval Date: Mon, 20 May 2024 18:09:48 +0100 Subject: [PATCH] feat(Switches): absolute server times (#27166) Try to improve our cache HITs and serve more 304 Not Modified when the content is actually no different than before. --- common/app/conf/switches/JournalismSwitches.scala | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/common/app/conf/switches/JournalismSwitches.scala b/common/app/conf/switches/JournalismSwitches.scala index 7c919f04c3d..a794c350b52 100644 --- a/common/app/conf/switches/JournalismSwitches.scala +++ b/common/app/conf/switches/JournalismSwitches.scala @@ -63,4 +63,14 @@ trait JournalismSwitches { sellByDate = never, exposeClientSide = true, ) + + val AbsoluteServerTimes = Switch( + SwitchGroup.Journalism, + name = "absolute-server-times", + description = "Force times on the server to be absolute to improve caching", + owners = Seq(Owner.withEmail("dotcom.platform@theguardian.com")), + safeState = Off, + sellByDate = never, + exposeClientSide = true, + ) }