News for hackers. Stuff that matters.
Re:HTTP Caching, a Refresher by bmandale on Wednesday December 24, 2025 @04:16PM (#46379315)
Sure, except I doubt most people want to uglify all their urls with extensions for occasional alternates. Plus, if the url with the extension gets past around instead of the original (as would inevitably be done) you're back to square one.

I had thought about recommending that people just use an alternate link as intended, to point to an alternate format. I think that would work best using existing web standards as intended, but it has the downside of initially serving the original format regardless of the content type.

Re:HTTP Caching, a Refresher by Joker_vD on Wednesday December 24, 2025 @05:13PM (#46379838)
> if the url with the extension gets past around instead of the original (as would inevitably be done) you're back to square one.

Why? It has no "Vary" header, and it's the one that's supposed to get cached anyhow.

Re:HTTP Caching, a Refresher by bmandale on Wednesday December 24, 2025 @08:02PM (#46381105)
If people see it in the url bar and copy paste it from there. In the case of images if they "copy image url".