Welcome! Log In Create A New Profile

Advanced

Re: Nginx does not Cache Google Adsense and Some other widgets - help

Reinis Rozitis
October 05, 2011 01:16PM
> --2011-10-05 18:09:32-- http://myWebDomain.com/contentAsset/resize-image/7e061df4-0fc3-481f-b75d-7ce3ff2e8cac/?w=175
> HTTP/1.1 404 Not Found
> Server: nginx
> Content-Type: text/html;charset=UTF-8
> Vary: Accept-Encoding
> Set-Cookie: JSESSIONID=5AB2FF5CF72E237DCEC48FAE19AE09F4; Path=/
> Set-Cookie: SHARED_SESSION_ID=GZ3W4CP2F07E; Expires=Thu, 06- Oct-2011 14:09:32 GMT; Path=/
> 2011-10-05 18:09:32 ERROR 404: Not Found.


Without the full nginx config (and the application specifics (looks like some java app/tomcat?) you are trying to proxy/cache) it is
hard to understand what is going wrong.

While you are getting a 404 response nginx cache should not influence if the object exists or not on the backend (unless the backend
is using something dynamic (like active sessionid/cookie) for the embedded object/image serving).

Is it possible to get the request/headers for the object directly from the backend (without nginx)?


Also can you show the proxy_cache_path for STATIC zone and/or check if nginx actually creates any cache file there?

In the end you could also enable/check the nginx error_log in more verbose mode.


But if it was intended to cache the 404 responses it is clear why nginx didn't it before since proxy_cache_valid didn't have 404
specified.

rr

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

Nginx does not Cache Google Adsense and Some other widgets - help

Alex October 04, 2011 08:28PM

Re: Nginx does not Cache Google Adsense and Some other widgets - help

Reinis Rozitis October 05, 2011 07:06AM

Re: Nginx does not Cache Google Adsense and Some other widgets - help

Alex October 05, 2011 10:16AM

Re: Nginx does not Cache Google Adsense and Some other widgets - help

Reinis Rozitis October 05, 2011 01:16PM

Re: Nginx does not Cache Google Adsense and Some other widgets - help

Alex October 06, 2011 10:10AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 110
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready