America.gov's 20-Year 'Permanent Cookie': The Government Website Tracking Controversy

America.gov's 20-year cookie expiration raises serious questions about public sector privacy defaults.
A Hacker News post revealed that America.gov, an official U.S. government website, sets persistent cookies with a 20-year expiration — functionally equivalent to never expiring. Unlike commercial tracking, this practice clashes with users' implicit trust in .gov domains. The cookies likely fail GDPR's data minimization and storage limitation principles, and face compliance pressure under U.S. federal policy as well. The root cause is often unreviewed defaults from third-party analytics tools and CDNs embedded by government contractors.
What a 20-Year Cookie Actually Means
A post on Hacker News has reignited scrutiny of the cookie-based tracking practices on America.gov, a U.S. government domain. The post's title is blunt: this is a "permanent" cookie with a 20-year expiration. For users already accustomed to tracking by e-commerce sites and ad platforms, seeing an official government website set an identifier with such a long lifespan clearly strikes a nerve around digital privacy.
From a technical standpoint, a cookie's expiration time should match its functional purpose. Session cookies expire when the browser closes, while persistent cookies used to remember login states or preferences are typically set to last anywhere from a few days to a year. Stretching that to 20 years is functionally equivalent to "never expires" — meaning the identifier will persist across virtually the entire lifespan of most users' devices, providing the infrastructure to correlate behavior over an extraordinarily long time horizon.

Why Government Tracking Deserves Extra Scrutiny
Tracking by ordinary commercial websites is unpleasant, but users at least mentally anticipate it — there are clear commercial motivations behind ads, recommendations, and personalization. Government websites are a different story. Official portals like America.gov typically serve functions such as public information distribution and citizen services, and users visiting them carry an implicit assumption: "This place isn't going to watch me like an ad company would."
When an authoritative .gov domain sets an unusually long-lived cookie, the problem isn't just the technical implementation — it's the gap in trust that opens up. A tracking identifier with a multi-decade lifespan may be used for analytics or traffic monitoring, but its design leaves room for misuse: in principle, it can stitch together a single user's visits over many years, building a long-term behavioral profile.
Though this discussion attracted limited attention on Hacker News (the original post received only 15 upvotes and 1 comment), it reflects the tech community's ongoing scrutiny of privacy practices in the public sector. Even institutions that aren't profit-driven can produce unintended privacy consequences through their default technical configurations.
Technical and Compliance Risks of Extra-Long Cookies
From a compliance perspective, cookies with excessively long expiration periods can be problematic in multiple jurisdictions. The EU's ePrivacy Directive and GDPR impose clear requirements around consent and proportionality for tracking cookies: data collected must be proportionate to the declared purpose, and retention periods must not exceed what is necessary. A 20-year cookie would have a hard time surviving scrutiny under the basic principle of data minimization.
Technical Risk Factors
- Cross-device, cross-time correlation: An ultra-long-lived identifier provides the infrastructure for long-term behavioral tracking, even if it isn't being actively used today.
- Amplified re-identification risk in data breaches: The longer an identifier persists, the easier it becomes to combine it with other datasets and re-identify individuals.
- Default configuration inertia: Many excessively long cookies aren't the result of deliberate design decisions — they stem from unreviewed defaults baked into analytics tools or content delivery networks.
What Users Can Do
For everyday users, countermeasures are limited but practical: regularly clearing browser cookies, using private/incognito mode when visiting government websites, and leveraging browser tracking protection features or extensions to block third-party identifiers. These steps don't change the website's configuration at the source, but they do shorten how long any given identifier survives on your device.
The ePrivacy Directive (2002/58/EC, commonly known as the "Cookie Law") and the GDPR together form the EU's two-layer regulatory framework for online tracking. The ePrivacy Directive requires websites to obtain explicit user consent before setting non-essential cookies, while the GDPR layers on the principles of "data minimization" (Article 5(1)(c)) and "storage limitation" (Article 5(1)(e)) — the former requiring that data collected not exceed what is necessary for the stated purpose, and the latter requiring that personal data "not be kept in a form which permits identification of data subjects for longer than is necessary." Under these two principles combined, a 20-year cookie has virtually no defensible justification: it's impossible to demonstrate that such a long identifier lifespan is "necessary" for an information-publishing purpose, or that retaining 20 years' worth of behavioral records is "proportionate" to the functions of a government service site. While the U.S. lacks a direct federal equivalent of the GDPR, policy documents such as OMB Memorandum M-10-22 already require federal websites to implement clear notice-and-choice mechanisms for the use of persistent cookies — meaning such an ultra-long cookie also faces domestic compliance pressure.
Reflections on Public Sector Digital Practices
This seemingly minor technical detail points to a much larger issue: whether public sector organizations subject the privacy defaults of their digital services to adequate scrutiny. Government websites are often built by external contractors, with layers of analytics tools, CDNs, and third-party components stacked on top of one another — each layer capable of introducing tracking behaviors that were never thoroughly evaluated.
Transparency is key to rebuilding trust. Public-facing websites should disclose their cookie policies, tracking purposes, and data retention periods, and should configure expiration times to reasonable intervals that match actual functional needs. A 20-year cookie is difficult to justify as a "technical necessity" under any motivation — it looks more like an absence of privacy impact assessment.
The tech community's continued exposure of issues like this is itself a valuable form of oversight. It reminds developers and architects that default configurations are not neutral: every expiration time setting represents an implicit decision about user privacy.
Background Context
Content delivery networks (CDNs) are one of the most common sources of "default configuration inertia." CDN providers (such as Cloudflare, Akamai, and Fastly) often set their own session identifiers or performance monitoring cookies in users' browsers as a side effect of accelerating content delivery for client websites — and the default expiration periods for these cookies can far exceed what any business need would justify. Similarly, analytics tools like Google Analytics, when left unconfigured, set a _ga identifier with a two-year expiration by default. When government websites embed these third-party services into their technology stack without review, these out-of-the-box defaults land in end users' browsers exactly as-is. The root of the problem is that contractors' project acceptance criteria typically focus on functional deliverables rather than the appropriateness of privacy configurations — leaving ultra-long cookies as an "unclaimed legacy" that no one takes ownership of.
Related articles

iPhone Duo Battery Life Tested: One Charge a Day Is Unavoidable, and the Large Screen Is the Culprit
iPhone Duo battery test: heavy use needs at least one charge a day, and about 30% remains after 6.5 hours of screen-on time. How often the large screen is unfolded is key; a MagSafe battery pack helps, and long-term degradation is also worth watching.

Kimi K3.1 Pro Open-Sourced: 2.8 Trillion Parameters Close In on Opus
Moonshot releases the open-source MoE model Kimi K3.1 Pro, with 2.8T total parameters and 104B activated, trailing Opus 5.5 by under 1 point on Terminal Bench 4.0.

Costco Tech Price Guessing: Are Monitors, Keyboards, Mice, and Bose Speakers Worth It?
A YouTube blogger guesses prices of Costco tech products: 2K 180Hz monitor, Logitech keyboard and mouse, Bose speaker, and CyberPower UPS, revealing warehouse-store selection and brand premium.