straycatstrut

joined 1 month ago
[–] straycatstrut@discuss.tchncs.de 9 points 2 days ago (1 children)

Conversely, I chose this instance specifically because it runs Lemmy (and doesn't use Cloudflare). I have an account on piefed.social and do not like the webUI at all, it's just janky compared to lemmy web UI. Changing this site's software stack to Piefed would simply make me leave as I specifically choose the lemmy webUI to interact with on a daily basis.

[–] straycatstrut@discuss.tchncs.de 6 points 6 days ago (13 children)
$ . /etc/os-release && echo ${NAME}
Arch Linux

Sadly, no - I run an extension called "Don't accept webp" causing that, I disabled it as soon as I saw the param to test and there's no difference with or without the param. (webdev console request headers)

[–] straycatstrut@discuss.tchncs.de 3 points 3 weeks ago (2 children)

Firefox webdev console request headers (minus my personal cookie), where I'm already on the page and just click the refresh button. No if-modified-since sent to the server to trigger a proper 304 response:

GET /pictrs/image/7285a9e0-5492-4461-8188-6778d7d594c7.jpeg?format=webp HTTP/2
Host: discuss.tchncs.de
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:145.0) Gecko/20100101 Firefox/145.0
Accept: image/avif,image/png,image/svg+xml,image/*;q=0.8,*/*;q=0.5
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate, br, zstd
Referer: https://discuss.tchncs.de/
Sec-Fetch-Dest: image
Sec-Fetch-Mode: no-cors
Sec-Fetch-Site: same-origin
Connection: keep-alive
DNT: 1
Sec-GPC: 1
Priority: u=5, i
TE: trailers
[–] straycatstrut@discuss.tchncs.de 4 points 3 weeks ago (3 children)

Here's the basic set of response headers showing the server is sending the proper cache-control directives on the image. The problem appears to be on the Firefox side using them properly.

$ curl -I https://discuss.tchncs.de/pictrs/image/7285a9e0-5492-4461-8188-6778d7d594c7.jpeg

HTTP/2 200 
server: openresty
date: Tue, 02 Dec 2025 12:51:29 GMT
content-type: image/jpeg
access-control-expose-headers: content-type, accept-ranges, transfer-encoding, date, cache-control, last-modified
vary: Origin, Access-Control-Request-Method, Access-Control-Request-Headers
cache-control: max-age=31536000
last-modified: Mon, 30 Jun 2025 11:02:52 GMT
expires: Wed, 02 Dec 2026 12:51:29 GMT
cache-control: public
access-control-allow-origin: *
x-cache-status: HIT
 

Hi friends,

Overview: I live across the world from the discuss.tchncs.de server and have noticed when I "fresh load" (or browser reload, but not a shift-reload force) the banner image on the home page sidebar always re-downloading (it's noticeable, takes 1-2 seconds). Once on the site, clicking "tchncs" top left to go back to the homepage does not trigger the re-download, fyi.

https://discuss.tchncs.de/pictrs/image/7285a9e0-5492-4461-8188-6778d7d594c7.jpeg

  • The image is only ~500kb (depending if you get the JPG or webp) and it 100% has proper cache-control headers being sent. It's in 1920x1080 size and always gets down-sized into a smaller size to fit on the sidebar. There is nothing wrong with the server headers in the response.
  • Using the webdev console, I found is that Firefox does not seem to send If-modified-since headers in the request so the server has to always return a 200 instead of a 304 (use cached version). So it's probably cached in my browser, by the browser isn't sending the right type of request to trigger use of the cache on my side. Not sure if Lemmy code bug or Firefox bug not sending if-modified-since headers, not a webdev. :)

Suggestion: Since this image appears to only be used to always downscale on the browser side to fit in the sidebar (? I think?), we could probably pre-downscale it on the server side to half or 1/4 of it's fileize. This would reduce network bandwidth for the server side and increase responsiveness on fresh load for users.

Thanks for reading.

I assume you are just asking for clarification about the Far Side part of this, but for anyone who does not understand the It’s Always Sunny in Philadelphia part:

No, that was me too - I eventually figured out that looked like Danny DeVito's head, made the connection it was something about that Sunny show and shrugged. I don't watch that show so the context is/was completely lost on me, thank you for replying.

[–] straycatstrut@discuss.tchncs.de 4 points 3 weeks ago (3 children)

Can someone explain this to me and why it's being upvoted in Far Side comics area?

[–] straycatstrut@discuss.tchncs.de 56 points 3 weeks ago (2 children)

I was taught at an impressionable age that the only winning move was not to play. Advice that has not failed me in some 42 years now. Thanks Joshua!

[–] straycatstrut@discuss.tchncs.de 6 points 1 month ago (1 children)

To share a bit more because people think it was "good", the Battle of the Alamo was specifically because "About one hundred Texians, wanting to defy Mexican law and maintain the institution of chattel slavery in their portion of Coahuila y Tejas by seeking secession from Mexico, ..." (emphasis mine) https://en.wikipedia.org/wiki/Battle_of_the_Alamo

I cannot confirm that (I have nothing to do with lemmyverse), but it was/is up and functioning so my instinct is "yes, it does not use cloudflare".

I grabbed a quick screenshot hours ago showing the trauma; based on my recollection that I typed into the registration box of tchncs, these of the top 20 instances were all down: lemmy.world, sh.itjust.works, lemmy.dbzero.com, lemmy.zip, lemmy.ca, programming.dev, lemmy.blahaj.zone, infosec.pub, aussie.zone, readthat.com, lemmy.today. Sister sites on the piefed side (e.g. piefed.social) were also down because they're the same admins using the same tech stacks.

A lot of lemmy instances put all their eggs in one basket and found out.

[–] straycatstrut@discuss.tchncs.de 11 points 1 month ago* (last edited 1 month ago) (4 children)

While the downtime was most active, most of the top instances were down. Lemmy.ml, feddit.org, discuss.tchncs.de and behaw.org were all up. You can use https://lemmyverse.net/ to browse things and the ones offline all show a "content error" in lemmyverse.

view more: next ›