P
P
Puma Thailand2013-09-10 17:54:46
linux
Puma Thailand, 2013-09-10 17:54:46

How to stop varnish from rewriting expires headers for static?

Put varnish before nginx with simple
backend default {
.host = "127.0.0.1";
.port="8181";
}
By default, Varnish apparently rewrites the expires and max-age header for images, and it is configured differently in nginx for different images, how can I force it to leave expires from nginx?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Diam0n, 2013-09-11
@Diam0n

ENIP, Varnish does not change headers by default, dig towards nginx.

D
Dan, 2014-06-05
@golotyuk

Try setting expires on an external Nginx (if it looks at port 80), and not on the back end.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question