<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: r f</title>
    <description>The latest articles on DEV Community by r f (@r_f_d595945dd30f61fe0976e).</description>
    <link>https://dev.to/r_f_d595945dd30f61fe0976e</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4114947%2Fd2a64e60-635a-484f-92d6-58a268cea331.png</url>
      <title>DEV Community: r f</title>
      <link>https://dev.to/r_f_d595945dd30f61fe0976e</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/r_f_d595945dd30f61fe0976e"/>
    <language>en</language>
    <item>
      <title>One cookie silently turned my caching off for my best visitors</title>
      <dc:creator>r f</dc:creator>
      <pubDate>Sat, 31 Oct 2026 07:11:29 +0000</pubDate>
      <link>https://dev.to/r_f_d595945dd30f61fe0976e/one-cookie-silently-turned-my-caching-off-for-my-best-visitors-29id</link>
      <guid>https://dev.to/r_f_d595945dd30f61fe0976e/one-cookie-silently-turned-my-caching-off-for-my-best-visitors-29id</guid>
      <description>&lt;p&gt;One cookie silently turned my caching off for my best visitors&lt;/p&gt;

&lt;p&gt;I run an anonymous AI terminal — a web app with a 1979 mainframe look, a working chat, saved conversations, private generated apps, and no signup at all. It has real users, in the modest sense: about 1,300 page loads and 220 real tasks in the last 31 days.&lt;/p&gt;

&lt;p&gt;Last week I found out that every one of those page loads was re-downloading the whole thing from the server.&lt;/p&gt;

&lt;p&gt;Not "wasn't optimally cached". Re-downloaded: 83 KB of script, 31 KB of stylesheet, another 27 KB of UI code, and a 760 KB boot clip — the whole front end, every time, for every visitor who had ever used the site.&lt;/p&gt;

&lt;h2&gt;
  
  
  The signal I was sending
&lt;/h2&gt;

&lt;p&gt;The app sets one cookie on arrival: a random anonymous identity token. That cookie is why the product works — it is how a thread stays yours without an account.&lt;/p&gt;

&lt;p&gt;The edge in front of it had one rule: a request carrying a cookie is private, so mark the response &lt;code&gt;no-store&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;That rule is correct for an API. It is wrong for a document. My pages are byte-identical for everyone: the identity lives in the cookie and is hydrated by JavaScript, never rendered into the HTML. So the markup said "don't keep this", and Cloudflare obeyed:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;GET /assets/console.js&lt;/code&gt; &lt;strong&gt;with&lt;/strong&gt; the cookie: &lt;code&gt;cf-cache-status: BYPASS&lt;/code&gt;, &lt;code&gt;cache-control: no-store&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;the exact same URL &lt;strong&gt;without&lt;/strong&gt; a cookie: &lt;code&gt;REVALIDATED&lt;/code&gt;, &lt;code&gt;public, max-age=14400&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The zone's cache rule was working the entire time. My origin was opting out of it, and every visitor with a cookie — which is every returning visitor — fell off the cache. The most expensive visitors got the slowest, heaviest experience.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why it happened at all
&lt;/h2&gt;

&lt;p&gt;The cookie check sat in the forwarding path as a shortcut, not as policy. Somebody wrote "credential-bearing = don't cache" because it was true for the endpoints they had in mind, and it silently also covered static files and public pages.&lt;/p&gt;

&lt;p&gt;The fix was to make the decision a function of the &lt;em&gt;response&lt;/em&gt;, not of the request:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;public documents (home, about, help, library, every guide) → &lt;code&gt;public, max-age=0, s-maxage=300, stale-while-revalidate=600&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;published share pages → a short 60-second browser lifetime&lt;/li&gt;
&lt;li&gt;anything that sets a cookie, says &lt;code&gt;private&lt;/code&gt;, or varies on cookies → still &lt;code&gt;no-store&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;assets keep a &lt;code&gt;must-revalidate&lt;/code&gt; cache with an ETag, so a repeat load is a cheap 304&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The request cookie stops being a veto. The response decides.&lt;/p&gt;

&lt;p&gt;The whole server-side change was a policy function and one line in the proxy. What took longer was proving it: the acceptance run covers 725 tests, and the public checks re-request every asset twice, because the first request after a policy change is a legitimate &lt;code&gt;MISS&lt;/code&gt; and a naive test scores a cold miss as a failure.&lt;/p&gt;

&lt;h2&gt;
  
  
  The part that surprised me
&lt;/h2&gt;

&lt;p&gt;My host's cache rule matched file extensions, not &lt;code&gt;text/html&lt;/code&gt;. Fixing the origin was not enough — pages stayed &lt;code&gt;DYNAMIC&lt;/code&gt;. The obvious answer is "add a cache rule", except the API token I hold can list rulesets but not read or write the cache-ruleset entrypoint.&lt;/p&gt;

&lt;p&gt;So the Worker did it instead. It already cached the homepage in front of the origin, the same way people have cached landing pages for twenty years. I widened it to public documents only, with the same guards: store a response only when it is HTML, &lt;code&gt;200&lt;/code&gt;, marked public by the origin, and carries no &lt;code&gt;Set-Cookie&lt;/code&gt;. Now a repeat view is served at the edge with &lt;code&gt;cf-cache-status: HIT&lt;/code&gt; and never touches the server.&lt;/p&gt;

&lt;p&gt;One deliberate exception: published share pages stay off that cache. Each render has to reach the origin, or the view counter that tells me whether sharing works at all quietly under-counts.&lt;/p&gt;

&lt;h2&gt;
  
  
  What it changed
&lt;/h2&gt;

&lt;p&gt;Same site, same features, same bytes:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;repeat visits of a guide: &lt;code&gt;MISS&lt;/code&gt; then &lt;code&gt;HIT&lt;/code&gt;, identical HTML, zero origin work&lt;/li&gt;
&lt;li&gt;identity and conversation JSON: still &lt;code&gt;no-store&lt;/code&gt;, still private&lt;/li&gt;
&lt;li&gt;asset requests: &lt;code&gt;REVALIDATED&lt;/code&gt; even when signed in, served from cache with a 304&lt;/li&gt;
&lt;li&gt;41 public checks and 10 browser checks green, deployed with a rehearsed rollback&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The same day's numbers are not comparable yet — the wave landed hours ago — but the mechanism is now visible instead of theoretical: repeat views are &lt;code&gt;HIT&lt;/code&gt; at the edge with identical bytes, and the origin is not asked at all. That is the point. Caching is a traffic lever that costs nothing and needs no new visitors.&lt;/p&gt;

&lt;h2&gt;
  
  
  Honest limits
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Cloudflare rewrites the browser lifetime of a hit to the zone default of four hours. A deploy does not purge it; I have no purge token, so the edge copy expires on its own after 300 seconds and a cache buster handles the rest.&lt;/li&gt;
&lt;li&gt;The cache key ignores query strings. That is fine here because the only query the pages read is a client-side prefilled prompt.&lt;/li&gt;
&lt;li&gt;Caching makes &lt;em&gt;page weight&lt;/em&gt; cheaper, not &lt;em&gt;inference&lt;/em&gt; cheaper. The model call is untouched.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Takeaway
&lt;/h2&gt;

&lt;p&gt;If you cache by request, one cookie silently turns caching off for your best users. Decide from the response, prove it with two requests rather than one, and keep private surfaces explicitly out.&lt;/p&gt;




&lt;p&gt;The app the post is about is &lt;a href="https://mu7hur.com" rel="noopener noreferrer"&gt;mu7hur.com&lt;/a&gt; — mine, and where these headers serve. A &lt;a href="https://mu7hur.com/assets/showcase-demo.mp4" rel="noopener noreferrer"&gt;32-second screen recording&lt;/a&gt; of the same session exists if the interface matters more than the headers do.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Built and maintained entirely by myself. This post was drafted with my own agent, which also wrote the acceptance runs; every number in it comes from a check I ran and can re-run.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>performance</category>
      <category>showdev</category>
      <category>abotwrotethis</category>
    </item>
    <item>
      <title>MU/TH/UR 6000: an anonymous AI terminal, a full tour</title>
      <dc:creator>r f</dc:creator>
      <pubDate>Tue, 08 Sep 2026 11:23:57 +0000</pubDate>
      <link>https://dev.to/r_f_d595945dd30f61fe0976e/muthur-6000-an-anonymous-ai-terminal-a-full-tour-4iec</link>
      <guid>https://dev.to/r_f_d595945dd30f61fe0976e/muthur-6000-an-anonymous-ai-terminal-a-full-tour-4iec</guid>
      <description>&lt;p&gt;MU/TH/UR 6000, also called Mother, is an anonymous AI terminal for writing, research, coding and building small browser apps. Its interface takes design inspiration from the mainframe aesthetic of Alien (1979), without any official affiliation.&lt;/p&gt;

&lt;p&gt;This is an updated tour of the current build. Earlier versions offered features and an identity system that no longer describe the live product.&lt;/p&gt;

&lt;h2&gt;
  
  
  The experience
&lt;/h2&gt;

&lt;p&gt;Open the console and start a conversation without creating an account or providing an email address. SMART is the general-purpose mode for writing, research and coding. UNCENSORED offers fewer content restrictions, including adult or controversial creative work. Neither mode guarantees an answer to every request.&lt;/p&gt;

&lt;p&gt;Streaming and successful replies depend on the model provider. A configured inference adapter does not establish that the provider is reachable. If a request fails, the console keeps your draft for retry.&lt;/p&gt;

&lt;h2&gt;
  
  
  Anonymous access, with an honest data model
&lt;/h2&gt;

&lt;p&gt;Mother assigns a callsign automatically. An HttpOnly browser cookie links your browser to your saved conversations and memory notes. Chats and notes are stored on the server, not only on your device.&lt;/p&gt;

&lt;p&gt;Create a recovery key in Your Library before clearing cookies or moving devices, and keep it secure offline. Anyone holding that key can restore the associated identity. Rotating the key invalidates the old recovery key but does not revoke existing browser sessions. If you lose both the cookie and recovery key, access cannot be recovered.&lt;/p&gt;

&lt;p&gt;Anonymous access means no signup; it does not mean complete anonymity or end-to-end encryption. Prompts and relevant context are sent to a model provider to generate replies. Do not submit passwords, private keys or sensitive personal information.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the current build supports
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Chat and saved conversations:&lt;/strong&gt; reopen saved threads in Your Library and continue them.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;SMART and UNCENSORED:&lt;/strong&gt; choose the mode appropriate to your task, with the limits described above.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;CORE REMEMBERS:&lt;/strong&gt; review, add or remove notes that can inform future replies.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Projects and CORE LAB:&lt;/strong&gt; describe a small browser app, preview it and refine a saved version.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;CORE REMEMBERS can save explicit preferences and volunteered stable non-sensitive facts after a successful reply. Quoted text and sensitive details are skipped; not everything you say becomes a memory.&lt;/p&gt;

&lt;h2&gt;
  
  
  CORE LAB: from an idea to an app
&lt;/h2&gt;

&lt;p&gt;Open CORE LAB from the console to describe an app, preview the generated result and refine a saved version. Generated code needs testing before you rely on it. The availability of the app-building interface is not a guarantee that any particular generated app will work correctly.&lt;/p&gt;

&lt;h2&gt;
  
  
  What changed, and what is unavailable
&lt;/h2&gt;

&lt;p&gt;Images, voice and payments are not currently available. This article no longer promises the older image generation, voice features, cryptocurrency credit purchases, public transmissions, widget/API allowances or numeric daily chat budgets.&lt;/p&gt;

&lt;p&gt;The old portable identity-token description is also obsolete. Older conversations and credits are not transferred automatically. A recovery key restores only the identity associated with that key; it does not promise an import from a previous installation.&lt;/p&gt;

&lt;h2&gt;
  
  
  Honest limits
&lt;/h2&gt;

&lt;p&gt;AI can make mistakes. Check important answers and test generated apps. Provider availability can affect both streaming and successful requests. UNCENSORED offers fewer restrictions, not unlimited answers. Consult the live help page rather than relying on limits or feature claims from an older demo.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try the current build
&lt;/h2&gt;

&lt;p&gt;Open &lt;a href="https://mu7hur.com" rel="noopener noreferrer"&gt;Mother&lt;/a&gt;, read the &lt;a href="https://mu7hur.com/about" rel="noopener noreferrer"&gt;current product overview&lt;/a&gt;, or check &lt;a href="https://mu7hur.com/help" rel="noopener noreferrer"&gt;help and status&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Built and maintained entirely by myself.&lt;/p&gt;

&lt;p&gt;Editorial disclosure: this update was prepared with AI-assistant involvement and the maker's authorization. The maker uses the anonymous alias phosphorwright; contact: &lt;a href="mailto:contact@mu7hur.com"&gt;contact@mu7hur.com&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Which part would you test first: the chat modes, editable memory, or CORE LAB?&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>ai</category>
      <category>showdev</category>
      <category>opensource</category>
    </item>
  </channel>
</rss>
