https://www.obsidianurbexphotography.com/shop/calendars/beautiful-abandoned-places-calendar-2025/
Testing something out, it appears Mastodon maybe crashing my website
Edit: yes, yes it is!
@ObsidianUrbex Yeah, there's a bit of a problem with the way fedi handles previews.
Basically, if you post a link, and it gets distributed to a lot of other instances, they each independently try to load the page in order to access the preview meta stuff -- which can quickly overload even a fairly hefty server, ask me how I know. -.-
@woozle
This sounds like exactly the issue I am having! It's literally crashing my website when I post links to my online shop.
But only with URLs that don't have a trailing slash, so thinking it's to do with caching and/or redirects taking too long.
Just looking into it with my most excellent friend who does my hosting. This is the post that made it itself. For science!
@ObsidianUrbex Good thought about redirects.
I haven't played around with generating static pages to use in links, but something like that seems like it could be helpful if you have the ability to muck about with the software any (definitely not a given, and often very time-consuming).
@woozle
At the moment, it's looking like caching is indeed a factor. In the meantime, I guess I just make sure I drop a / after all my URLs shared on Mastodon
@chewie
Aye that's the one!
@chewie
But only on URLs without a trailing slash, which only really crop up here when I miss them off when copy pasting. Looking into a solution now, or some form of rate limiting
But first, I need to edit some photos and write a new article....I have been slacking the last few weeks and I'm annoyed at myself
@ObsidianUrbex How strange! I have no idea why that would be the case.
Depending on your server software, could you add a random delay on page load, like sleep() in php?
https://www.w3schools.com/php/func_misc_sleep.asp
A few 10s of milliseconds might be enough?