can't cache javascript file from proxy
Maxim Dounin
mdounin at mdounin.ru
Fri Aug 7 18:17:55 UTC 2015
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/
More information about the nginx
mailing list