Welcome! Log In Create A New Profile

Advanced

Re: Reverse proxy caching for dynamic content

May 16, 2019 12:59AM
When max-age=0 in the Cache-Control header, Nginx will not cache, so that will not work.
I need this in cache-control to make sure all browsers will revalidate.

So, as far as I can see I can chose between:
1. ignore cache-control header, need to set proxy_valid or nothing will be cached minimum is 1s.
2. not ignore cache-control, but obliged to set max-age or nothing will be cached minimum is 1s.

Nginx should be able to cache even when max-age is set to 0. There are valid reasons to cache when max-age is 0.
Subject Author Posted

Reverse proxy caching for dynamic content

flierps May 15, 2019 03:57AM

Re: Reverse proxy caching for dynamic content

Patrick May 15, 2019 04:44AM

Re: Reverse proxy caching for dynamic content

flierps May 15, 2019 07:10AM

Re: Reverse proxy caching for dynamic content

Patrick May 15, 2019 11:38PM

Re: Reverse proxy caching for dynamic content

flierps May 16, 2019 12:59AM

Re: Reverse proxy caching for dynamic content

Patrick May 16, 2019 01:12AM

Re: Reverse proxy caching for dynamic content

flierps May 16, 2019 01:38AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 299
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