Welcome! Log In Create A New Profile

Advanced

Re: can't cache javascript file from proxy

Maxim Dounin
August 07, 2015 02:20PM
Hello!

On Fri, Aug 07, 2015 at 07:12:21AM -0400, bugster86 wrote:

> Hi,
>
> I have a problem with cache javascript file from a proxy glassfish4.0
> Server.

[...]

> proxy_ignore_headers "Cache-Control";
> #proxy_ignore_headers "Pragma";

[...]

> With a browser, I open a web page http://r60:81/site and I see all the
> content of the page.
> This is OK but I don't view anything in /tmp/nginx/cache (no cache files
> )
>
> My web request download 3 javascript file.
> I expect it to be cached.
>
> Why proxy_ignore_headers "Cache-Control" doesn't work properly?

There are other headers in addition to Cache-Control which may
prevent caching of a response by nginx. Most notably, Expires and
Set-Cookie. Check if the response contains them to see if it's
the case.

See http://nginx.org/r/proxy_ignore_headers for a full list.

--
Maxim Dounin
http://nginx.org/

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

can't cache javascript file from proxy

bugster86 August 07, 2015 07:12AM

Re: can't cache javascript file from proxy

Maxim Dounin August 07, 2015 02:20PM

Re: can't cache javascript file from proxy

bugster86 August 08, 2015 07:35AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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