diff --git a/src/routes/economic-calendar/+page.server.ts b/src/routes/economic-calendar/+page.server.ts index 11ebe88f..4f6be245 100644 --- a/src/routes/economic-calendar/+page.server.ts +++ b/src/routes/economic-calendar/+page.server.ts @@ -11,7 +11,7 @@ export const load = async ({ locals, setHeaders }) => { }); const output = await response.json(); - setHeaders({ "cache-control": "public, max-age=3000" }); + setHeaders({ "cache-control": "public, max-age=60*15" }); return output; }; diff --git a/src/routes/economic-calendar/+page.svelte b/src/routes/economic-calendar/+page.svelte index 25386727..61565276 100644 --- a/src/routes/economic-calendar/+page.svelte +++ b/src/routes/economic-calendar/+page.svelte @@ -1,18 +1,12 @@ @@ -524,10 +543,28 @@ {#each filterList?.length === 0 ? weekday : weekdayFiltered as day, index} {#if index === selectedWeekday} {#if day?.length !== 0} -

- {formattedWeekday[index]?.split(", ")[1]} · {day?.length} - Events -

+
+

+ {formattedWeekday[index]?.split(", ")[1]} · {day?.length} + Events +

+ {#if filterList?.length !== 0} +
+ Filters + + {filterList?.length} + +
+ {/if} +