Skip to main content
Version: 2.x

HOST151: Your host's cache can mix up store data

Symptom: when you connect, red text under Connect reads "This store's hosting setup is blocking the app — the details page names the exact cause and fix.", with a Learn more link to this page.

Do this now: ask whoever looks after your website to stop their cache storing your store's answers, then connect again.

Fix it at the till​

  1. Send whoever looks after your website a link to this page. Their cache must stop storing your store's answers.
  2. Once they've changed the cache settings and cleared it, enter Your store's address and press Connect again.
  3. If it connects: carry on selling.
  4. If the red text shows again: the cache still answers for your store. Tell them again.

Is anything lost?​

No. Nothing on this device is lost. WCPOS doesn't connect rather than risk showing one person's data to another. Anything already on this device stays there and sends once it connects.

If it keeps happening​

A cache in front of your store hands out stored answers without checking who is asking, so one cashier could see another's data. Only whoever looks after your website can fix it.

For whoever looks after your website

Two differently-authenticated checks got the first one's answer. WordPress always answers per user, so a hosting cache is replaying it. Fix it even if WCPOS connected.

  1. Exclude /wp-json/ and /?rest_route= from page caching. LiteSpeed: disable REST caching or add a no-cache rule. WP Engine: extend the WooCommerce exclusion to /wp-json/wcpos and the ?rest_route= form. Sucuri: set the caching level to honour Cache-Control.
  2. The store's API already sends Cache-Control: no-store and Vary: Authorization; the cache ignores them. Point the host at those headers.
  3. Purge the cache after changing the settings, then have the till connect again.

Still stuck?​

If WCPOS still won't connect after the purge, tell support the code and when it happened.

Code details for support
Code
HOST151 (CACHE_SHARED_REPLAY)
Severity
error
Introduced in
WCPOS 1.10.0

If a retry with a unique cache key on every request arrives intact, WCPOS connects, keeps the key and logs this code as a warning, with no pop-up. Otherwise it blocks connecting.