only send analytics in prod, remove freshrss from services, add atom to rss feed header, let rss feeds cache for a week

This commit is contained in:
silentsilas 2025-02-07 14:27:33 -05:00
parent b76ab4e170
commit 5b0c2ba65c
Signed by: silentsilas
GPG Key ID: 113DFB380F724A81
5 changed files with 9 additions and 13 deletions

View File

@ -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);
};

View File

@ -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'
}
};

View File

@ -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'
}
};

View File

@ -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',

View File

@ -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'
}
};