A
A
Alex Plotnikov2019-01-20 15:16:04
Nginx
Alex Plotnikov, 2019-01-20 15:16:04

How to cancel caching only with certain query parameters?

There is an nginx config that caches all requests to /
I don't understand how to make sure that certain "/?sort=random" requests, for example, are never cached.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
ivankomolin, 2019-01-21
@TrueDevs

Define a separate location for such requests and disable caching in it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question