TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Contentlesshtml – An HTML page served entire in HTTP headers

42 pointsby dddnzzz3346 months ago

6 comments

ruthmarx6 months ago
Why isn't it being assembled as HTML that can be viewed in document inspector or via viewing source? Ht HTML that extensions inspect shows up. If it is assembled to be rendered, why isn't it available anywhere else in the browser to view?
评论 #42235531 未加载
cryptonym6 months ago
Doesn't work on Chrome
评论 #42235388 未加载
评论 #42235411 未加载
xnx6 months ago
Blank rickroll site from 3 years ago using same technique: <a href="https:&#x2F;&#x2F;github.com&#x2F;PwnFunction&#x2F;Blank-Rick-Roll">https:&#x2F;&#x2F;github.com&#x2F;PwnFunction&#x2F;Blank-Rick-Roll</a>
selcuka6 months ago
TL; DR: It uses the HTTP link header [1] in a way that only works on some browsers:<p><pre><code> link &lt;data:text&#x2F;css;charset=utf-8;base64,KiB7CiAgICBiYWNrZ3JvdW5kLWNvbG9yOiBjeWFuOwp9Cgpib2R5OjphZnRlciB7CiAgY29udGVudDogIkhpISBUaGlzIGlzIHNlcnZlZCBlbnRpcmVseSBpbiB0aGUgSFRUUCBoZWFkZXJzISBQcmV0dHkgY29vbCwgaHVoPyI7CiAgZm9udC1zaXplOiAyNHB4OwogIGZvbnQtZmFtaWx5OiBjdXJzaXZlOwogIHRleHQtc2hhZG93OiAycHggMnB4IDJweCBwaW5rOwp9Cg==&gt;; rel=&quot;stylesheet&quot; </code></pre> which is, when base64-decoded:<p><pre><code> * { background-color: cyan; } body::after { content: &quot;Hi! This is served entirely in the HTTP headers! Pretty cool, huh?&quot;; font-size: 24px; font-family: cursive; text-shadow: 2px 2px 2px pink; } </code></pre> [1] <a href="https:&#x2F;&#x2F;developer.mozilla.org&#x2F;en-US&#x2F;docs&#x2F;Web&#x2F;HTTP&#x2F;Headers&#x2F;Link" rel="nofollow">https:&#x2F;&#x2F;developer.mozilla.org&#x2F;en-US&#x2F;docs&#x2F;Web&#x2F;HTTP&#x2F;Headers&#x2F;Li...</a>
Alifatisk6 months ago
How much can one pack into the header? Is there a limit?
评论 #42235781 未加载
评论 #42235613 未加载
bhhaskin6 months ago
Isn&#x27;t every webpage served by http headers? =P