> For the complete documentation index, see [llms.txt](https://docs.nosto.com/magento/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.nosto.com/magento/guides/varnish-and-full-page-caches.md).

# Varnish & Full-Page Caches

If you use Varnish or another full-page cache mechanism, you must exclude certain Nosto blocks (hole punching).

Nosto adds query parameters to the product URLs for tracking purposes. You may encounter a cache-miss when query parameters are appended to the URL. We recommend [modifying your VCL definition to automatically strip out the query parameters added by Nosto](https://help.nosto.com/manuals/how-can-i-exclude-the-nosto-query-parameter-from-my-varnish-vcl-rules).

## Magento Community Edition

Magento CE does not ship with a built-in FPC mechanism and you **must** manually exclude two Nosto blocks. Failure to do so may result in sensitive information leaking across browser sessions.

* [Cart Block](https://github.com/Nosto/nosto-magento/blob/3.5.1/app/design/frontend/base/default/layout/nostotagging.xml#L57)
* [Customer Block](https://github.com/Nosto/nosto-magento/blob/3.5.1/app/design/frontend/base/default/layout/nostotagging.xml#L62)

> **Note:** The plugin uses a feature called hashed cookie identifiers (HCID) to safeguard against the leakage of customer information on Nosto's end.

## Magento Enterprise Edition

If you are using Magento EE's built-in FPC mechanism, you need not worry about hole punching as hole-punching rules are auto-configured.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.nosto.com/magento/guides/varnish-and-full-page-caches.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
