Only update expires time once per hour
This commit is contained in:
parent
d6e5469179
commit
0af76fa97b
@ -295,7 +295,9 @@ yesodRunner handler' YesodRunnerEnv {..} route req sendResponse
|
|||||||
|
|
||||||
getGetMaxExpires :: MonadIO m => m (IO Text)
|
getGetMaxExpires :: MonadIO m => m (IO Text)
|
||||||
getGetMaxExpires = liftIO $ mkAutoUpdate defaultUpdateSettings
|
getGetMaxExpires = liftIO $ mkAutoUpdate defaultUpdateSettings
|
||||||
{ updateAction = liftM (formatRFC1123 . addUTCTime (60*60*24*365)) getCurrentTime }
|
{ updateAction = liftM (formatRFC1123 . addUTCTime (60*60*24*365)) getCurrentTime
|
||||||
|
, updateFreq = 60 * 60 * 1000000 -- ^ Update once per hour
|
||||||
|
}
|
||||||
|
|
||||||
yesodRender :: Yesod y
|
yesodRender :: Yesod y
|
||||||
=> y
|
=> y
|
||||||
|
|||||||
@ -1,3 +1,5 @@
|
|||||||
|
__1.4.4.2__ `neverExpires` uses dates one year in the future (instead of in 2037).
|
||||||
|
|
||||||
__1.4.4.1__ Improvements to etag/if-none-match support #868 #869
|
__1.4.4.1__ Improvements to etag/if-none-match support #868 #869
|
||||||
|
|
||||||
__1.4.4__ Add the `notModified` and `setEtag` functions.
|
__1.4.4__ Add the `notModified` and `setEtag` functions.
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
name: yesod-core
|
name: yesod-core
|
||||||
version: 1.4.4.1
|
version: 1.4.4.2
|
||||||
license: MIT
|
license: MIT
|
||||||
license-file: LICENSE
|
license-file: LICENSE
|
||||||
author: Michael Snoyman <michael@snoyman.com>
|
author: Michael Snoyman <michael@snoyman.com>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user