From cb46ad855d75a97b0f5748a58df76bc4834c21df Mon Sep 17 00:00:00 2001 From: GordeaS <4517853+gsergiu@users.noreply.github.com> Date: Mon, 24 Apr 2023 17:34:13 +0200 Subject: [PATCH] switch to regular etags (remove W/ prefix) #EA-3421 --- .../api/commons/web/controller/BaseRestController.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/commons-web/src/main/java/eu/europeana/api/commons/web/controller/BaseRestController.java b/commons-web/src/main/java/eu/europeana/api/commons/web/controller/BaseRestController.java index 044b2e3d..31ed505c 100644 --- a/commons-web/src/main/java/eu/europeana/api/commons/web/controller/BaseRestController.java +++ b/commons-web/src/main/java/eu/europeana/api/commons/web/controller/BaseRestController.java @@ -79,8 +79,7 @@ public String generateETag(Date timestamp, String format, String version) { serialCode += "0.0.1-SNAPSHOT".hashCode(); } - // see also https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/ETag - return "W/\"" + Long.toHexString(serialCode) + "\""; + return "\"" + Long.toHexString(serialCode) + "\""; } /**