> For the complete documentation index, see [llms.txt](https://help.citrusad.com/retail-media-interface/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.citrusad.com/retail-media-interface/integration/pt-br/data-api/api-overview/http-persistence-ad-caching-endpoints-1.md).

# Persistência HTTP e endpoints

## Persistência HTTP

Epsilon Retail Media requer uma conexão HTTP persistente. Sem ela, as solicitações de geração de anúncios levarão mais tempo, e os tempos de resposta serão mais lentos do que o desejado. As solicitações de geração de anúncios devem ser feitas em uma conexão persistente, e não ter uma nova conexão gerada toda vez que uma nova solicitação de geração de anúncio for feita, para garantir que você possa receber Epsilon Retail Mediaos serviços da na velocidade pretendida.

Cada handshake TLS gerado tem um custo, e quanto mais handshakes TLS forem estabelecidos, mais cara será a transferência de dados da Epsilon Retail Media para o seu site de e-commerce. Manter uma conexão HTTP persistente evita o congestionamento e melhora os tempos de resposta HTTP.

{% hint style="info" %}
Para saber mais sobre conexões HTTP persistentes, acesse os seguintes recursos:

<https://en.wikipedia.org/wiki/HTTP_persistent_connection>

<https://tools.ietf.org/html/rfc7230#section-6.4>
{% endhint %}

## URL do endpoint

Você é livre para nomear o endpoint que conecta seu servidor de e-commerce e seu site de e-commerce como desejar. ***No entanto***, como uma solução de anúncios nativos, a Epsilon Retail Media recomenda evitar qualquer estrutura de nomeação de endpoint que inclua 'ads'.

{% hint style="info" %}
Se o seu endpoint contiver 'ads', ele ficará muito mais suscetível ao bloqueio de anúncios, o que reduz suas oportunidades de receita.
{% endhint %}


---

# 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://help.citrusad.com/retail-media-interface/integration/pt-br/data-api/api-overview/http-persistence-ad-caching-endpoints-1.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.
