How to make empty_gif expire image immediately?

Rt Ibmer rtibmx at yahoo.com
Thu Oct 30 07:28:51 MSK 2008


So is the idea here that you don't send any image? My concern with that is the I would think that under some circumstances some browsers may try more than once to get the image if it got a 204, which would then cause too many hits to the log (throw off the tracking).

I may try this out but I am still very interested to hear why the expires 0 does not seem to have an effect with empty_gif. Thanks.

> try this
> 
> location = /files/beacon.gif {
>     return 204;
> }



      






More information about the nginx mailing list