Welcome! Log In Create A New Profile

Advanced

Priority of cache-control, expires, x-accel-expires

December 02, 2011 07:05PM
How does nginx caching handle multiple cache control headers sent from a backend?

I had a situation where I was sending both expires and cache-control and it seemed that the order in which they were sent controlled. I solved that problem by ignoring the expires header.

I thought I recalled that x-accel-expires would override any other headers regardless of order, but that doesn't seem to be the case.

Is there a priority, or does order control?
Subject Author Posted

Priority of cache-control, expires, x-accel-expires

brianmercer December 02, 2011 07:05PM

Re: Priority of cache-control, expires, x-accel-expires

Maxim Dounin December 05, 2011 04:32AM

Re: Priority of cache-control, expires, x-accel-expires

yugo-horie January 18, 2022 09:19PM

Re: Priority of cache-control, expires, x-accel-expires

Maxim Dounin January 19, 2022 08:56AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 226
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready