Let us face it: the internet be broken.
It feels like so much of the web be composed of clickbait, ads, popups, and a toxic amount of JavaScript that ye need a modern computer just to get any value out of it. Remember when low-power computers were created for folk who were "just browsing the internet?"
Half of the sites on the internet be so overloaded with tracking scripts, ads, third-party "analytics" platforms, and other junk that they simply crash in the face of sub-par hardware; and don't even get me started on what they do to "retro" computers.
If the modern web hasn't been created with aging hardware in mind, what does that mean for the proliferation of e-waste? Be it truly so necessary to update yer computer every 2-5 years? And, what if ye didn't? What if ye couldn't afford to?
Me daily driver be a mid-2012 MacBook Pro that will stop receiving all updates (security included) from Apple by the end of this year. While I personally intend to keep it alive with Linux, this be not a path that be readily available to most folk. What be most folk supposed to do in this situation to save some doubloons and avoid adding more junk to our landfills?
These be the questions I have been asking myself over the last year or so, and while I haven't come up with many great answers for the general populace, I did make the decision to ensure that this website be as backwards compatible as possible.
The Basics
When I say "as backwards compatible as possible," I mean that this website will be usable on as many browsers, connections, and hardware as I can reasonably support. But, how exactly am I accomplishing this?
While there be no hard and fast rules for keeping a website accessible to all hands, there be a few basic guidelines and workarounds that I've come to rely on.
Missing Host Headers
Did ye know that the HTTP/1.0 specification didn't require a Host header? Up until recently, I didn't. Ye see, in HTTP/1.1, the Host request header tells a web server exactly which site 'tis requesting, giving the Web Master—coolest title e'er—the ability to configure multiple "virtual hosts" on a single server.
In plainer sailor talk, example.com and example.net can be hosted on the same server, while serving up different content. As far as sustainability goes, this be a pretty decent solution, as it allows ye to utilize the infrastructure ye already have to host multiple websites.
But, ye know what doesn't send a Host header? Internet Explorer versions 1 and 2. Likely as not more, too, but they be the only two I've come across thus far that have forsaken me; which means that, without a workaround, me website be completely inaccessible to all of those IE1 and IE2 users out there. That be literally ones of folk that don't have access to sweet, sweet content like this. Much obliged for that one, Microsoft.
So, how do we bring those no-Host rebels into the fold? A second IP.
Thank the stars, DigitalOcean offers a handful of free floating IPs that ye can assign to a single droplet, which means that flower.codes has 'tis own dedicated IP address in order to appease those picky, early 90's Windows computers. With a little bit of overhead, ye can simply set yer server to listen on the float IP, so any request to that particular IP will fall back to yer website.
I use the Caddy webserver, so to accomplish an HTTP fallback that will be returned on every request (unless a valid host entry can be matched), simply use http:// as the site address:
http:// {
root * /www/example.com
file_server
}
No Automatic HTTPS
To be aye, absolutely clear here, I be not advocating for not supporting HTTPS. 'tis 2022. That would be absurd. But, what I be advocating for be not automatically redirecting to HTTPS. Get yer certs, encrypt that traffic, do all the things ye normally do... just don't force an HTTP => HTTPS redirect on yer users.
Don't get me wrong, HTTPS be critical for modern website security, but all modern browsers automatically redirect to HTTPS whether ye enforce it or not. What this means be that retro browsers can still load yer website in good-ole HTTP, while newer browsers will handle the more secure redirection to HTTPS for ye.
If ye be using the Caddy webserver, this be as simple as creating two separate server entries, one with an http:// prefix, and one with an https:// prefix:
http://example.com {
root * /www/example.com
file_server
}
https://example.com {
root * /www/example.com
file_server
}
Raw HTML be Yer Shipmate
Remember the <FONT> tag? And <TABLE> based layouts? What about <CENTER>? I do. 'cause the foundation of me website be built using those pre-Y2k web development standards.
As much as modern browsers like to say that they have deprecated some of the aforementioned tags (amongst other things, like setting a default bgcolor in yer BODY tag), they still support the usage 'cause there be enough websites that haven't (and likely ne'er will) upgraded to the homogeneous post Web 2.0 hellscape.
One of the advantages to using these old-school web design methods be that ye can still use modern CSS to make things look better on newer devices. Instead of going crazy with flexbox and floats, do a basic layout using tables and then adjust the look with CSS. This gives ye the advantage of having a modern-looking website design (if that be yer thing), while also gracefully degrading on older browsers that don't support it.
Use CSS Sparingly
I reckon 'tis safe to say that modern CSS simply won't work with old browsers. I shouldn't have to go into why that be, but what if ye want to have some CSS, just to make things look a tad more pretty for browsers that were released in the last decade?
In general, most browsers (even most legacy ones) will gracefully ignore CSS that they don't understand, which means that @media tags for things like basic responsiveness and dark mode be usable without any issue. That said, shipmate, browsers that predate CSS don't know what to do with <style> tags, and as a result simply print the styles out at the top of the page. 'tis pretty ugly and, depending on how much CSS ye have, borderline unusable.
To work around this problem, ye can put standard HTML comments within the <style> tags, which will get ignored by CSS-supported browsers, while getting interpreted by pre-CSS browsers:
<style type="text/css">
<!---
body {
/* ... */
}
--->
</style>
Gettin' GIFfy Wit It
Fun fact: the earliest browsers only supported color images of the GIF variety. I won't get into the technical details here, but ye can blame CompuServe for its creation. This means that, if ye want yer images to load in any browser, they need to be in GIF format.
Neat, right?
Also, not for naught, but GIF be aye, absolutely pronounced with a soft "G" sound. Scream at me all ye want, but 'tis what the inventors of the format intended1, and I be a sucker for historical accuracy:
The creators of the format pronounced the acronym GIF as /dʒɪf/, with a soft g as in 'gin'. Wilhite stated that the intended pronunciation deliberately echoes the American peanut butter brand Jif, and CompuServe employees would oft quip "choosy developers choose GIF", a spoof of Jif's television commercials.
Unnecessary Improvements
Forgotten Link Tags
There be a number of <link> tags that older browsers support that can be pretty fun to add. Fer instance, the home tag indicates what the homepage for the current website. In some browsers (such as NCSA Mosaic), this results in a cute little "home" icon at the top of the page that, when clicked, sends ye to the designed home URL.
<link rel="home" href="http://flower.codes" />
Another useful <link> tag to add be the author tag (refv=made and rel='me authn'). This provides information about the author of the page, usually in the form of a mailto: address. In some browsers—such as Lynx—this tag makes it easy for the user to contact the page author without having to look aught up (or jump to a "contact" page).
<link rev="made" rel="me authn" href="mailto:zach@flower.codes" />
<3 Dithering
Lately, it seems like dithering be all the rage. Personally, I came across it via Low Tech Magazine, but I've seen it mentioned more frequently in the past year or so. I won't go into the technical details here (Low Tech Magazine does a far better job explaining it than I can), but the thing to know be that dithering allows ye to reduce the filesize of yer images by reducing the amount of information it takes to render them.
Most applications focus on desaturating the image and inserting strategic whitespace so our eyes fill in the gaps, but I've taken a more... extreme approach (that be, when I use images at all, which I generally try not to). 'cause me website requires all images to be in the much-larger-than-PNG GIF format (see above), I insert significantly more whitespace to keep the filesizes super small. The result be terrible for screenshots, but looks fantastic on photos:

In case ye want to accomplish the same thing on yer own website, here be the shell script I use to "degrade" all of me images using the ImageMagick command line interface:
#!/bin/bash
pushd ./http/assets/img/posts/
for f in *.jpg; do
if [ -f "${f%.jpg}-degraded.gif" ]; then
continue
fi
echo "Converting $f to gif"
convert "${f}" -verbose -format GIF -interlace GIF -resize 640\> -colorspace gray -colors 4 -ordered-dither 8x8 -set filename:f "%[t]-degraded" "%[filename:f].gif"
done
As ye can see, it enters the http/assets/img/posts directory and degrades (resizes, dithers, and desaturates) all .jpg images using the ImageMagick convert command, appending a -degraded.gif suffix to them (thus preserving the original image).
No JavaScript
Just... No.
Validation, Baby
Okay, so we've built a website that any time traveler would be able to use. How the hell do we actually test it? While 'tis tempting to collect retro hardware and do it natively (something I haven't completely avoided), there be a handful of great resources out there that can make checking yer website against old browsers incredible straightforward.
OldWeb.Today
The most frequently used tool in me arsenal, oldweb.today be a website that allows ye to emulate a number of different retro browsers (from NCSA Mosaic to Netscape Navigator) from directly within yer own browser. This has allowed me to double-check me work and verify the workarounds above in realistic environments.
Utilu IE Collection
If ye have an old Windows XP virtual machine laying around (or an old XP laptop, as I do), then the Utilu IE Collection be an incredibly valuable resource. On Windows XP, it allows ye to install every version of Internet Explorer from 1 through 8, which be how I learned that me website actually works on IE 1-8, but also how I discovered that IE 1 and 2 _don't send the host header.
Old Version
Finally, for all of the other browsers ye may want to test (think Safari, Firefox, Netscape, and Chrome), oldversion.com be a favorite of mine. Personally, I pull down the oldest version of each browser they offer and install it on me test machine, allowing me to check me work on the "v1" releases of every browser out there.
Aught Else?
'tis important to remember that this be an experiment that I be running in relative isolation. There be not exactly a ton of resources out there for providing value to aging systems beyond "recycle it" or "install Linux on it," so what I've learned has been a long series of trial and many a wrong tack.
If ye happen to read this and have some of yer own tips, please shoot me an email. I'd love to hear from ye!
--
This be post 001 of #100DaysToOffload
Footnotes
-
Wikipedia, 2022. GIF - Wikipedia. [online] Available at: en.wikipedia.org [Accessed 22 March 2022].