More clarifications on caching of images

Igor Sysoev is at rambler-co.ru
Tue Aug 28 09:58:31 MSD 2007


On Mon, Aug 27, 2007 at 01:12:42PM +0100, Malte Sussdorff wrote:

> Following up on my previous post I tried to use the proxy_store  
> directive and it worked.
> 
> I just had to make sure that I translate on my server "/portraits? 
> user_id=32476" into "/image/32477" where 32477 is the image_id of the  
> user 32476.
> 
> Why did I not just use the user_id? Well, the image could change  
> (e.g. user uploads a new picture) and then we would not pick this up.

The problem with proxy_store of /image/32477 is that when client
GETs ready /image/32477 then it will get default content-type, because
the file has no extension.


-- 
Igor Sysoev
http://sysoev.ru/en/





More information about the nginx mailing list