A
A
Andrew2016-08-15 15:49:53
Nginx
Andrew, 2016-08-15 15:49:53

How to make a caching key with a domain from a referer in nginx?

Good afternoon!
The problem is this - I cache the requests in which the api comes. The api comes from different domains and nginx caches with an incorrect header Access-Control-Allow-Origin
* does not suit us, we have to substitute our own for each referer. And with cash - whoever came first is the one and dad, out.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question