Skip to content

Commit

Permalink
Update cache.js
Browse files Browse the repository at this point in the history
  • Loading branch information
laurieboyes committed May 10, 2017
1 parent d6f955d commit 73727f2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/middleware/cache.js
@@ -1,6 +1,7 @@
module.exports = (req, res, next) => {
res.FT_NO_CACHE = 'max-age=0, no-cache, no-store, must-revalidate';
res.FT_SHORT_CACHE = 'max-age=600, stale-while-revalidate=60, stale-if-error=86400';
res.FT_SHORT_CACHE_ALWAYS_REVALIDATE = 'max-age=600, stale-if-error=86400';
res.FT_HOUR_CACHE = 'max-age=3600, stale-while-revalidate=60, stale-if-error=86400';
res.FT_DAY_CACHE = 'max-age=86400, stale-while-revalidate=60, stale-if-error=86400';
res.FT_WEEK_CACHE = 'max-age=604800, stale-while-revalidate=60, stale-if-error=259200';
Expand Down

0 comments on commit 73727f2

Please sign in to comment.