diff --git a/src/hooks.server.ts b/src/hooks.server.ts index a10b28e..9c01bed 100644 --- a/src/hooks.server.ts +++ b/src/hooks.server.ts @@ -50,7 +50,9 @@ export const handle: Handle = async ({ event, resolve }) => { // Add sessionId to locals for easy access in routes event.locals = { ...event.locals, sessionId }; - sendAnalytics(event); + if (import.meta.env.PROD) { + sendAnalytics(event); + } return resolve(event); }; diff --git a/src/routes/(app)/poetry/rss/+server.ts b/src/routes/(app)/poetry/rss/+server.ts index e06912b..3a4356e 100644 --- a/src/routes/(app)/poetry/rss/+server.ts +++ b/src/routes/(app)/poetry/rss/+server.ts @@ -12,8 +12,8 @@ export const GET = async () => { const body = render(posts); const options = { headers: { - 'Cache-Control': 'max-age=0, s-maxage=3600', - 'Content-Type': 'application/xml' + 'Cache-Control': 'max-age=0, s-maxage=604800', + 'Content-Type': 'application/atom+xml' } }; diff --git a/src/routes/(app)/rss/+server.ts b/src/routes/(app)/rss/+server.ts index 9b278a3..c2ee64e 100644 --- a/src/routes/(app)/rss/+server.ts +++ b/src/routes/(app)/rss/+server.ts @@ -12,8 +12,8 @@ export const GET = async () => { const body = render(posts); const options = { headers: { - 'Cache-Control': 'max-age=0, s-maxage=3600', - 'Content-Type': 'application/xml' + 'Cache-Control': 'max-age=0, s-maxage=604800', + 'Content-Type': 'application/atom+xml' } }; diff --git a/src/routes/(app)/services/+page.svelte b/src/routes/(app)/services/+page.svelte index 309932a..05a3617 100644 --- a/src/routes/(app)/services/+page.svelte +++ b/src/routes/(app)/services/+page.svelte @@ -12,12 +12,6 @@ description: "A pastebin service, useful for sending quick text snippets or sharing sensitive data with Burn After Reading. It doesn't require an account, but I do log the IP addresses of visitors for security purposes. None of the data entered is stored on the server itself; it is E2E-encrypted and contained in the URLs it generates. Anyone with the link can access the data, however, so be sure to send it to them securely, enable Burn After Reading, or share only nonsensitive data." }, - { - title: 'FreshRSS', - url: 'https://rss.silentsilas.com', - description: - "A self-hosted RSS reader that I use to keep up with blogs, podcasts, and news sites. I can provision an account for you if you want to try it out. You would use an RSS client on your devices and have them subscribe to your FreshRSS URL. You would then add all of the RSS feeds you'd like to follow via the FreshRSS web interface and all of your RSS clients will then pull the articles for you to read." - }, { title: 'The Lounge', url: 'https://irc.silentsilas.com', diff --git a/src/routes/(app)/thoughts/rss/+server.ts b/src/routes/(app)/thoughts/rss/+server.ts index f784ee3..c1529b8 100644 --- a/src/routes/(app)/thoughts/rss/+server.ts +++ b/src/routes/(app)/thoughts/rss/+server.ts @@ -12,8 +12,8 @@ export const GET = async () => { const body = render(posts); const options = { headers: { - 'Cache-Control': 'max-age=0, s-maxage=3600', - 'Content-Type': 'application/xml' + 'Cache-Control': 'max-age=0, s-maxage=604800', + 'Content-Type': 'application/atom+xml' } };