diff --git a/package.json b/package.json index b2d51bf..d47d3cc 100644 --- a/package.json +++ b/package.json @@ -43,7 +43,7 @@ "eslint": "^9.7.0", "eslint-plugin-n": "^17.9.0", "globals": "^15.8.0", - "rollup": "^4.18.1" + "rollup": "^4.19.0" }, "dependencies": { "@hebcal/core": "^5.4.11", diff --git a/src/shabbat.js b/src/shabbat.js index cf779f8..ae9e7b8 100644 --- a/src/shabbat.js +++ b/src/shabbat.js @@ -8,6 +8,7 @@ import {makeHebcalOptions, processCookieAndQuery, possiblySetCookie, makeGeoUrlArgs, shortenUrl, queryDefaultCandleMins, + CACHE_CONTROL_7DAYS, localeMap, makeHebrewCalendar} from './common.js'; import {getTodayDate, getDefaultYear, getDefaultHebrewYear, expiresSaturdayNight} from './dateUtil.js'; @@ -46,6 +47,7 @@ export async function shabbatApp(ctx) { } if (dateOverride) { ctx.lastModified = new Date(); + ctx.set('Cache-Control', CACHE_CONTROL_7DAYS); } else { expiresSaturdayNight(ctx, new Date(), options.location.getTzid()); } diff --git a/views/holiday-main-index.ejs b/views/holiday-main-index.ejs index 48ff759..28d9747 100644 --- a/views/holiday-main-index.ejs +++ b/views/holiday-main-index.ejs @@ -12,7 +12,8 @@
Dates of major and minor Jewish holidays as observed in <%= il ? 'Israel' : 'the Diaspora' %>. +
Dates of major and minor Jewish holidays for years <%=hyear-3762%>-<%=hyear-3756%>, + as observed in <%= il ? 'Israel' : 'the Diaspora' %>. Each holiday page includes a brief overview of special observances and customs, and any special Torah readings.