From 82605a6c5960fa0a0ccf3c1dedd68fcee0c8ad8f Mon Sep 17 00:00:00 2001 From: Aidar Date: Mon, 12 Feb 2024 14:50:53 +0100 Subject: [PATCH] Fixes "Main page caching doesn't work properly" Last-Modified HTTP header of assets contained in jar is wrong See https://github.com/playframework/playframework/issues/10572 --- build.sbt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/build.sbt b/build.sbt index 5f397c5..d33ca54 100644 --- a/build.sbt +++ b/build.sbt @@ -1,3 +1,5 @@ +import sbt.Package.FixedTimestamp + name := """play-scala-react-seed""" version := "1.0-SNAPSHOT" @@ -5,7 +7,8 @@ version := "1.0-SNAPSHOT" lazy val root = (project in file(".")) .enablePlugins(PlayScala) .settings( - watchSources ++= (baseDirectory.value / "public/ui" ** "*").get + watchSources ++= (baseDirectory.value / "public/ui" ** "*").get, + ThisBuild / packageOptions += FixedTimestamp(Package.keepTimestamps) ) resolvers += Resolver.sonatypeRepo("snapshots")