on master help sign in
Merge branch 'develop' into aa/rp062
commit3dce11d6b4925387688351360d733fb46f7ae338 authorAli Abrar <aliabrar@gmail.com> dateFri 4 Dec 2020, 10:49 (6 years ago) parent3cb369bdfd7c8c
2 files changed+3−1
ChangeLog.md+2 lib/snap-extras/src/Obelisk/Snap/Extras.hs+1−1
ChangeLog.md+2
@@ -9,6 +9,8 @@ This project's release branch is `master`. This log is written from the perspect
99* Pinned version bumps:
1010 * reflex-platform [0.6.2.0](https://github.com/reflex-frp/reflex-platform/releases/tag/v0.6.2.0)
1111 * hnix 0.8.0
12+* [#787](https://github.com/obsidiansystems/obelisk/pull/787): Set `immutable` cache control directive when serving content-addressed static assets
13+
1214
1315## v0.9.0.1
1416
lib/snap-extras/src/Obelisk/Snap/Extras.hs+1−1
@@ -17,7 +17,7 @@ import System.Directory
1717-- | Set response header for "permanent" caching
1818cachePermanently :: MonadSnap m => m ()
1919cachePermanently = do
20− modifyResponse $ setHeader "Cache-Control" "public, max-age=315360000"
20+ modifyResponse $ setHeader "Cache-Control" "public, max-age=315360000, immutable"
2121 modifyResponse $ setHeader "Expires" "Tue, 01 Feb 2050 00:00:00 GMT" --TODO: This should be set to "approximately one year from the time the response is sent"
2222
2323-- | Set response header to not cache