Menu

Our marketing site writes nothing to seven storage surfaces, and reads one key that is never there
📰

Our marketing site writes nothing to seven storage surfaces, and reads one key that is never there

DEV Community: nextjs·Daniel Pertu·12 days ago
#mKD7J8vv
#devtonextjs#devto#dev#cookie#nothing
Reading 0:00
15s threshold

A while ago I published a post arguing that PubTrivia needs no cookie banner. The argument was partly wrong, and I corrected it later: the root layout does load one cross-origin script, so the claim that nothing on the page talks to another domain did not survive contact with performance.getEntriesByType("resource") .

What I never did was the measurement that the argument actually rested on. So here it is: every place a browser can keep state, checked on the live site.

The seven surfaces

Cookies, on the wire. curl -sI over all 72 URLs in the sitemap : zero Set-Cookie headers. Then the same question for subresources, which curl cannot see, by driving Chrome through twelve pages with the Network domain enabled and reading responseReceivedExtraInfo for every response: 557 requests, zero Set-Cookie headers , including the response from the one off-origin script.

Cookies, in the document. document.cookie is the empty string on all 72 pages.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.