---
title: "Discussion on \"A UK Visitor's Cookie Banner Was Cached, Then Served To Every Visitor For 24 Hours\" | Hashnode"
description: "Discussion on \"A UK Visitor's Cookie Banner Was Cached, Then Served To Every Visitor For 24 Hours\". Per-request CSRF nonce and detected region got baked into cached HTML. UK visitors saw US banners. The AJAX-init pattern that fixed it."
url: "https://hashnode.com/posts/a-uk-visitor-s-cookie-banner-was-cached-then-served-to-every-visitor-for-24-hours/6a0defa065a0bc5786bb3286"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [A UK Visitor's Cookie Banner Was Cached, Then Served To Every Visitor For 24 Hours](https://royalplugins.hashnode.dev/a-uk-visitor-s-cookie-banner-was-cached-then-served-to-every-visitor-for-24-hours?utm_source=hashnode&utm_medium=feed)

Per-request CSRF nonce and detected region got baked into cached HTML. UK visitors saw US banners. The AJAX-init pattern that fixed it.

May 20 · 6 min read · royalplugins.hashnode.dev  
Read the article

-   [#wordpress](https://hashnode.com/tag/wordpress)
-   [#wordpress-plugins](https://hashnode.com/tag/wordpress-plugins)
-   [#gdpr](https://hashnode.com/tag/gdpr)
-   [#privacy](https://hashnode.com/tag/privacy)
-   [#cookies](https://hashnode.com/tag/cookies)

## Written by

[Jameson Brandon](https://hashnode.com/@royalplugins)

@royalplugins · Tokyo, Japan

  
[View profile](https://hashnode.com/@royalplugins)

Wrote over 500k lines of code on just wp plugins

Writing on current projects we are working on

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
