this post was submitted on 14 Oct 2023
712 points (98.6% liked)

Memes

45558 readers
725 users here now

Rules:

  1. Be civil and nice.
  2. 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
 

Self doubt stems from here.

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 15 points 1 year ago (3 children)

Huh I wonder if you could make a website so simple it could be saved as a cookie

[–] [email protected] 17 points 1 year ago* (last edited 1 year ago) (1 children)

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.

[–] [email protected] 1 points 1 year ago

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 ?

[–] [email protected] 5 points 1 year ago* (last edited 1 year ago)

<div>hello world</div>

[–] [email protected] 5 points 1 year ago

Cstimer.org is I think