inPIPE uses a small browser cookie called gorilla_food to identify visitors across page views. This cookie is essential for UTM attribution, returning-visitor detection, and event tracking. It is lightweight and does not affect page content — but if your caching setup reacts to it incorrectly, it can prevent pages from being served from cache, causing slower load times.

This guide explains how gorilla_food interacts with every major caching layer and how to configure each one correctly.

What gorilla_food does #

When a new visitor arrives at your site for the first time, inPIPE sets a gorilla_food cookie containing a unique visitor identifier (a 35-character string). This cookie lasts 400 days. For returning visitors, the cookie is simply read from the browser — no new cookie is set on the page response.

The cookie is approximately 50 bytes (name + value). It is sent with every HTTP request to your domain. The page content is identical regardless of the cookie’s value — gorilla_food is only used by tracking scripts, not by the page renderer.

Key facts #

  • The Set-Cookie header is only sent for first-time visitors (new cookie creation)
  • Returning visitors never trigger a Set-Cookie from the page load
  • Cookie renewal happens via REST API calls (/wp-json/inpipe/v1/gorilla-food), which are not page-cached — this is intentional
  • Free inPIPE installs load zero additional JavaScript files on the frontend — only a tiny inline dataLayer push
  • The PHP work is microseconds: read a cookie value, validate it with a regex, done

Why caching can be affected #

Most full-page caching systems (plugins and server-level) follow a simple rule: if the response contains a Set-Cookie header, don’t cache it. This is correct behaviour — caching a response with Set-Cookie would serve one visitor’s cookie to everyone.

The side effect is that first-time visitors always hit PHP uncached, because their response includes the Set-Cookie: gorilla_food=... header. This is expected and unavoidable — the cookie must be set.

However, problems arise when a caching layer is misconfigured to also skip cache for returning visitors who already have the cookie. The two common misconfigurations are:

  1. “Never Cache Cookies” lists: If gorilla_food is added to the cache plugin’s cookie exclusion list, every visitor carrying the cookie bypasses cache — which means all repeat traffic hits PHP uncached.
  2. Overly broad server rules: Some server configurations skip cache for any request that carries any cookie, rather than just WordPress session cookies. If your server does this, gorilla_food (along with analytics cookies like _ga) will cause cache misses on every request.

The rule #

gorilla_food is cache-safe. The page content is identical regardless of its value, so your caching layer should ignore it completely. Never add it to a “never cache” or “rejected cookies” list. The correct fix for any gorilla_food + caching issue is always to make the cache ignore the cookie — never to disable gorilla_food (which would break all inPIPE tracking).

WP Rocket #

WP Rocket checks incoming request cookies to decide whether to serve a cached page.

What to check #

  1. Go to Settings → WP Rocket → Advanced Rules
  2. Find the “Never Cache Cookies” field
  3. Confirm that gorilla_food is NOT listed
  4. If it is listed, remove it and save

Other WP Rocket settings to verify #

  • Separate Cache Files for Mobile (Settings → WP Rocket → Mobile Cache) — Unrelated to gorilla_food, but if enabled alongside a cookie misconfiguration it doubles the problem (two cold caches instead of one).
  • “Enable caching for logged-in users” — If enabled, WP Rocket varies cache by user cookies. Ensure gorilla_food is not being treated as a user-identifying cookie at this level.
  • WP Rocket + Cloudflare add-on — If active, check that Cloudflare’s “Respect Existing Headers” is on so WP Rocket’s Cache-Control headers pass through.

W3 Total Cache #

W3 Total Cache (W3TC) uses a “Rejected cookies” field to decide which visitors bypass the page cache.

What to check #

  1. Go to Performance → Page Cache → Advanced
  2. Find the “Rejected cookies” field
  3. Confirm that gorilla_food is NOT listed
  4. If it is listed, remove it and save

Note: W3TC has separate layers (Page Cache, Object Cache, Browser Cache). The “Rejected cookies” field affects Page Cache only. Object cache and browser cache are unaffected by cookie exclusions. If you use W3TC’s debug mode, a rejected cookie will show as Reject reason: cookie is rejected and Status: not cached in the response headers.

LiteSpeed Cache #

LiteSpeed Cache has two cookie-related settings that work differently:

What to check #

  1. Go to LiteSpeed Cache → Cache → Excludes
  2. Find the “Do Not Cache Cookies” field
  3. Confirm that gorilla_food is NOT listed
  4. If it is listed, remove it and save

Also check LiteSpeed Cache → Cache → Advanced → Vary Cookies. This is a different mechanism: “Vary Cookies” creates separate cached copies per cookie value instead of bypassing cache entirely. If gorilla_food is listed here, LiteSpeed will try to create a unique cached page for every single visitor — filling disk and effectively defeating the cache. Remove it from this list as well.

Server-level caches #

If your hosting provider runs a server-level cache (Nginx, Varnish, or a CDN), those caches have their own cookie handling rules that operate independently of your WordPress caching plugin.

Nginx FastCGI Cache #

By default, Nginx does not cache responses containing a Set-Cookie header, and does not cache requests containing a Cookie header. This means:

  • First-time visitors (who receive Set-Cookie: gorilla_food) are never cached — this is correct
  • Returning visitors may also bypass cache if the Nginx config does not strip harmless cookies from the cache-key decision

The fix is for the server administrator to configure Nginx to ignore gorilla_food (and other analytics cookies like _ga, _gid, _fbp) when deciding whether to serve from cache. This is typically done in the Nginx configuration, not in WordPress.

Varnish #

Varnish’s default VCL (configuration) skips cache for any request carrying a Cookie header. The correct fix is to strip non-essential cookies (including gorilla_food) in vcl_recv so Varnish ignores them when building the cache key. Only WordPress session cookies (wordpress_logged_in_*, wp-postpass_*, WooCommerce cart cookies) should trigger a cache bypass.

Cloudflare #

Cloudflare bypasses its edge cache for any response containing a Set-Cookie header. This means first-time visitors are always served from origin — expected behaviour.

A common mistake is to use Cloudflare’s “Cache Everything” page rule with “Edge Cache TTL” to force caching. This overrides the Set-Cookie bypass, but then one visitor’s Set-Cookie response gets cached and served to everyone — which is incorrect for identification cookies. Do not use “Cache Everything” to work around this. Let Cloudflare cache normally and accept that first visits are uncached.

Other CDNs (KeyCDN, Bunny, StackPath) #

Most CDNs follow the same Set-Cookie bypass behaviour as Cloudflare. Check your CDN’s cache-miss rate dashboard — if the miss rate correlates with the percentage of new (first-time) visitors, the gorilla_food Set-Cookie is the likely cause, and that is expected, not a problem to fix.

Cookie size and bandwidth #

The gorilla_food cookie is approximately 50 bytes and is sent with every HTTP request to your domain (HTML pages, images, CSS, JavaScript, AJAX calls). On a page with 80 assets, that is roughly 4 KB of additional request headers per page load.

This is negligible on broadband connections. For mobile visitors on slow connections, the impact is minimal but measurable. If your site already serves static assets from a cookieless domain or CDN (which most modern setups do), the cookie is only sent with the HTML document request itself — not with images, CSS or JavaScript.

Can I disable gorilla_food? #

No. The gorilla_food cookie is the core visitor identification mechanism for inPIPE. Without it:

  • UTM attribution stops working (inPIPE cannot link a visit to its traffic source)
  • Returning-visitor detection breaks (is_new_user is always true)
  • Premium event tracking loses visitor continuity across page views
  • The gorilla_food value links together all events from a single visitor over time

The correct approach is always to configure your caching layer to ignore the cookie, not to remove it.

How to diagnose a caching issue #

If you suspect gorilla_food is causing slow page loads, run this quick test:

  1. Open an incognito/private browser window (no existing cookies)
  2. Open your browser’s Developer Tools (F12) → Network tab
  3. Load your site — this is a first visit (no cookie yet)
  4. Click on the HTML document request and check the Response Headers for Set-Cookie: gorilla_food=...
  5. Load the page again in the same window (now you have the cookie)
  6. Check the HTML document response headers again — there should be no Set-Cookie: gorilla_food header this time
  7. Compare load times between the two page loads

Interpreting results #

  • First load slower, second load fast: This is the normal Set-Cookie cache-miss pattern. First-time visitors hit PHP; returning visitors get cached pages. No action needed.
  • Both loads slow: Your caching layer is likely bypassing cache for the gorilla_food cookie on returning visitors. Check the “Never Cache Cookies” / “Rejected Cookies” lists in your caching plugin (see sections above).
  • Second load has a Set-Cookie: gorilla_food header: Something is re-triggering cookie creation on every page load. This should not happen — contact support.

Check your cache-hit headers #

Most caching layers add a header to the response indicating whether the page was served from cache:

  • WP Rocket: No specific cache header, but cached pages are served as static HTML files
  • W3 Total Cache: Look for X-Page-Speed or check for Served by w3tc in the HTML source
  • LiteSpeed Cache: X-LiteSpeed-Cache: hit (cached) or miss (uncached)
  • Nginx FastCGI: X-FastCGI-Cache: HIT (cached) or MISS / BYPASS (uncached)
  • Varnish: X-Cache: HIT or Age: >0
  • Cloudflare: CF-Cache-Status: HIT

If the second page load (returning visitor) shows MISS or BYPASS on any of these headers, that layer is not caching the page — and the cookie exclusion list for that layer is the first place to check.

Summary #

Caching LayerWhere to CheckWhat to Verify
WP RocketSettings → WP Rocket → Advanced Rulesgorilla_food is NOT in “Never Cache Cookies”
W3 Total CachePerformance → Page Cache → Advancedgorilla_food is NOT in “Rejected cookies”
LiteSpeed CacheLiteSpeed Cache → Cache → Excludesgorilla_food is NOT in “Do Not Cache Cookies” or “Vary Cookies”
Nginx FastCGIServer config (ask host)Analytics cookies stripped from cache-key decision
VarnishVCL config (ask host)gorilla_food stripped in vcl_recv
Cloudflare / CDNCDN dashboardNot using “Cache Everything” to override Set-Cookie bypass

If you have checked all of the above and are still experiencing slow page loads, the cause is likely unrelated to gorilla_food. Contact support with your caching plugin name, server type (Apache/Nginx/LiteSpeed), and a screenshot of your browser’s Network tab showing the slow request.


What are your feelings

Updated on November 30, 2026