Welcome! Log In Create A New Profile

Advanced

Re: Nginx Reverse Proxy Caching

Sathish Kumar
February 13, 2019 06:28PM
Hi Peter,

Thanks, I am looking for the same solution but to enable only for html
files.

On Thu, Feb 14, 2019, 2:02 AM Peter Booth via nginx <nginx@nginx.org wrote:

> Satish,
>
> The browser (client-side) cache isn’t related to the nginx reverse proxy
> cache. You can tell Chrome to not cache html by adding the following to
> your location definition:
>
> add_header Cache-Control 'no-store';
>
> You can use Developer Tool in Chrome to check that it is working.
>
>
> Peter
>
>
> Sent from my iPhone
>
> On Feb 13, 2019, at 11:56 AM, Sathish Kumar <satcse88@gmail.com> wrote:
>
> Hi All,
>
> We have Nginx in front of our Application server. We would like to disable
> caching for html files.
>
> Sample config file:
>
> location /abc/ {
> proxy_pass http://127.0.0.1:8080;
> }
>
> We noticed few html files get stored in Chrome local disk cache and would
> like to fix this issue. Can anybody help, thanks
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Nginx Reverse Proxy Caching

Sathish Kumar February 13, 2019 11:58AM

Re: Nginx Reverse Proxy Caching

Peter Booth via nginx February 13, 2019 01:04PM

Re: Nginx Reverse Proxy Caching

Sathish Kumar February 13, 2019 06:28PM

Re: Nginx Reverse Proxy Caching

Sathish Kumar February 13, 2019 09:02PM

Re: Nginx Reverse Proxy Caching

Sathish Kumar February 15, 2019 07:26AM

Re: Nginx Reverse Proxy Caching

Sathish Kumar May 11, 2019 09:42PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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