Skip to content

Commit

Permalink
Since content for yahrzeit iCalendar feed differs for Google Calendar…
Browse files Browse the repository at this point in the history
… Importer UA, set HTTP Vary header
  • Loading branch information
mjradwin authored Oct 23, 2024
1 parent 8593bea commit 6db53de
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/yahrzeit.js
Original file line number Diff line number Diff line change
Expand Up @@ -454,6 +454,7 @@ export async function yahrzeitDownload(ctx) {
if (query.i === 'on') {
icalOpt.location = Location.lookup('Jerusalem');
} else if (ctx.get('user-agent') === 'Google-Calendar-Importer') {
ctx.set('Vary', 'User-Agent');
icalOpt.location = Location.lookup('New York');
}
const zeroEvents = events.length === 0;
Expand Down

0 comments on commit 6db53de

Please sign in to comment.