Skip to content

Works with your stack

Cookie consent on Pressable

no cached country

← Cookie Rocks for your stack

Pressable’s Edge Cache can keep answers from the WordPress REST API for a few minutes. Cookie Rocks 2.11.6 asks for the visitor’s country in a way the cache never reuses, so each visitor gets the rules of their own country.

By Pressable · pressable.com

Is this your product? Tell us if anything here is out of date. Write to us

Setting the visitor’s country

Where the country comes from
On Pressable, use the country database source of Cookie Rocks: it reads the country from the visitor’s address on your own server, from a signed file, with no host setting.
In Cookie Rocks
In Cookie Rocks Pro, open Rules by country and choose the country database under Where the country comes from, then save. The Verification block should say “Source verified”.
Before 2.11.6
With an older version, the Edge Cache could keep a country answer for a few minutes. Update to 2.11.6 or later; no exclusion is needed at Pressable.
When in doubt
Until the source is checked, or when a visitor’s country is unknown, every visitor gets the strict rules: nothing loads before a yes.

What matters for consent with Pressable

The Edge Cache and the REST API

Pressable’s support explains that /wp-json/ is not excluded from its Edge Cache: a REST GET can be kept for a few minutes (max-age=300 in its test). Without care, one visitor’s country could be served to the next.

What stops the cache

Pressable names the headers that prevent caching: Cache-Control no-cache with max-age=0, and Pragma: no-cache. It also suggests a unique parameter for each request.

What Cookie Rocks 2.11.6 does

The country request now sends no-cache, max-age=0 and Pragma: no-cache, and carries a unique parameter each time. The cache never reuses an answer, with no setting to change at Pressable.

Questions

What happens after the 30-day trial?

The banner, your visitors’ choices and your proofs of consent keep working. Without a key, most settings lock, updates and support stop. Take a key at any time and everything opens again.

For sites on Pressable

The right rules for each visitor’s country.

country by country

Rules by country are part of the complete plugin. Every feature of the complete plugin for 30 days, no card.

  • During the trial: everything, including the full settings and the scans
  • After 30 days without a key: the banner, your visitors’ choices and your proofs of consent keep working
  • What waits for a key: most settings, updates and support

How the trial works, in detail

Cookie Rocks

Get your trial key

Your e-mail and your site. Your key arrives as soon as you confirm your e-mail.

One trial per domain. Local and staging sites never use up your key.

We keep your e-mail address to send your key and help you with it, as explained in our privacy policy. No newsletter, nothing else.