Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ Example of an **invalid** URL (causes error 504): *example.com/image.jpeg?ims=10
6. Edit the remaining settings as required and click the **Save** button.
7. In the **Rules Engine** tab for the application, add or edit a **Request phase** rule for one or more image paths.
8. In the **Criteria** section, select the variable to indicate the path of your images in your origin:
- If `${request_uri}` matches `\.(jpg|jpeg|gif|bmp|png)`<br/>
- If `${request_uri}` matches `\.(jpg|jpeg|gif|bmp|png|ico|webp|avif)`<br/>
Or:
- If `${uri}` matches `\.(jpg|jpeg|gif|bmp|png)$`
- If `${uri}` matches `\.(jpg|jpeg|gif|bmp|png|ico|webp|avif)$`
9. In the **Behavior** section, select **Set Cache Policy** and select the cache setting you created.
10. Add the **Optimize Images** behavior.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ Exemplo de uma URL **inválida** (causa erro 504): *example.com/image.jpeg?ims=1
6. Edite as configurações restantes conforme necessário e clique no botão **Save**.
7. Na aba **Rules Engine** da application, adicione ou edite uma regra **Request** para um ou mais caminhos de imagem.
8. Na seção **Criteria**, selecione a variável para indicar o caminho das imagens na sua origem:
- If `${request_uri}` matches `\.(jpg|jpeg|gif|bmp|png)`<br/>
- If `${request_uri}` matches `\.(jpg|jpeg|gif|bmp|png|ico|webp|avif)`<br/>
Or:
- If `${uri}` matches `\.(jpg|jpeg|gif|bmp|png)$`
- If `${uri}` matches `\.(jpg|jpeg|gif|bmp|png|ico|webp|avif)$`
9. Na seção **Behavior**, selecione **Set Cache Policy** e selecione a configuração de cache que você criou.
10. Adicione o comportamento **Optimize Images**.

Expand Down