Hello guys, I'm not able to find any information about how the proxy_cache_background_update works. Official documentation says: Allows starting a background subrequest to update an expired cache item, while a stale cached response is returned to the client. Note that it is necessary to allow the usage of a stale cached response when it is being updated. Ok I get this, but how does it worby Szop - How to...
Thanks for the fast reply. >1. The static content - jpg, png, tiff, etc. It looks as though you are serving them your backend and caching them. Are they also being built on demand dynamically? If not, then why csche them? Why not deploy them to nginx and serve them directly? There is a huge part of static content that is stored on a shared filesystem, which is delivered from backend. Unfoby Szop - Nginx Mailing List - English
Hello guys, I'm having a hard time defining a proxy cache because my landing page doesn't generate any HTML which can be cached. Quit complicated to explain, let me show you some logs and curl requests: curl: curl -I https://....info/de HTTP/1.1 200 OK Server: nginx Date: Thu, 21 Jun 2018 11:56:15 GMT Content-Type: text/html;charset=UTF-8 Content-Length: 135883 Connection: keep-alivby Szop - Nginx Mailing List - English
Sorry, this was a stupid question. Of course I need to redirect first to the SSL part and then check for the cookie or IP: HTTP part: location ^~ /api { rewrite https://$http_host$request_uri; (rewrite the location to https) } HTTPS part: location ^~ /api { if ($iporcookiematches != 1) { (and then check if the ip or cookie matches) return 403; } proxy_pass http://backend;by Szop - How to...
I'm having some difficulties rewriting a location to https, then asking if a specific cookie or IP is matched and then pass it to a http backend. For example, I need the /api location rewritten to https since the whole domain is just http and don't may be rewritten completely to https. My intention is something like this: location ^~ /api { rewrite https://$http_host$request_uri; (rewritby Szop - How to...