Skip to content

Commit

Permalink
Fixes "Main page caching doesn't work properly"
Browse files Browse the repository at this point in the history
Last-Modified HTTP header of assets contained in jar is wrong

See playframework/playframework#10572
  • Loading branch information
SunPj authored Feb 12, 2024
1 parent 9737217 commit 82605a6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion build.sbt
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
import sbt.Package.FixedTimestamp

name := """play-scala-react-seed"""

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")
Expand Down

0 comments on commit 82605a6

Please sign in to comment.