this post was submitted on 14 Oct 2023
712 points (98.6% liked)
Memes
45558 readers
725 users here now
Rules:
- Be civil and nice.
- Try not to excessively repost, as a rule of thumb, wait at least 2 months to do it if you have to.
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Huh I wonder if you could make a website so simple it could be saved as a cookie
If the browser follows RFC 2019, 2965 and 6265, it should only be able to accept 300 cookies which are a maximum of 4096 bytes each. So yes. You can store enough data in cookies for an optimized page or two, with or without images. Maybe you could store an 8bit track as epic background music as well as a few dozen links for your Web Ring.
How do you render it? Can javascriot access the cookie? Then you write it to the DOM? You still have to obtain the cookie initially, then have all clicks act like an SPA and not make server calls.
Interesting idea.
If they are starting a new session but they already have the cookie, how do you prevent the initial server contact when they open the browser/tab ?
<div>hello world</div>
Cstimer.org is I think