<p class="MsoNoSpacing"></p><p class="MsoNoSpacing">Hi all,</p><p class="MsoNoSpacing">I have a strange case, not sure if this is addressed by
nginx yet </p>
<p class="MsoNoSpacing">My site is cached as follows. </p>
<p class="MsoNormal"> location = / {</p>
<p class="MsoNormal"> proxy_pass <a href="http://localhost:82">http://localhost:82</a>;</p>
<p class="MsoNormal"> proxy_set_header Host $host;</p>
<p class="MsoNormal">
proxy_set_header X-Real-IP $remote_addr;</p>
<p class="MsoNormal">
proxy_set_header
X-Forwarded-For
$proxy_add_x_forwarded_for;</p>
<p class="MsoNormal"> proxy_set_header
Accept-Encoding "";</p>
<p class="MsoNormal">
proxy_ignore_headers Set-Cookie; </p>
<p class="MsoNormal"> proxy_ignore_headers
Cache-Control; </p>
<p class="MsoNormal">
proxy_ignore_headers Expires; </p>
<p class="MsoNormal">
proxy_ignore_headers X-Accel-Expires; </p>
<p class="MsoNormal"> add_header
X-Cache-Status $upstream_cache_status;</p>
<p class="MsoNormal"> proxy_cache cache;</p>
<p class="MsoNormal">
proxy_cache_key
$scheme$host$request_uri$cookie_site_sessionid; </p>
<p class="MsoNormal">
proxy_cache_valid 200 302
30s;</p>
<p class="MsoNormal">
proxy_cache_use_stale updating;</p>
<p class="MsoNormal"> }</p>
<p class="MsoNoSpacing">One issue I encounter with this is that I can’t increment
the page view counter that I maintain in redis. </p>
<p class="MsoNoSpacing">Is there is way nginx can fire a request to the backend
web – to some URI so that I can take the request and increment the associated
counter? </p>
<p class="MsoNoSpacing">I know I can achieve this with SSI, but I wanted to check
if there is a better pattern. </p><p class="MsoNoSpacing">-Quintin</p><p></p>