Set-Cookie is missing via proxy

Isaac Hailperin i.hailperin at heinlein-support.de
Thu Dec 6 15:16:50 UTC 2012


On 06.12.2012 14:37, Maxim Dounin wrote:

>> Also, at least from the config, the html should not be cached, 
>> right?
>
> I don't see anything in the config you provided which will prevent
> caching.

location ~* \.(jpg|gif|png|css|js)
         {
                 try_files $uri @proxy;
         }

         location @proxy
         {
                 proxy_pass http://backend-all-apaches;
         }

         location /
         {
                 proxy_pass http://backend-all-apaches;
         }

As far as my understanding goes, this will only cache 
jpg|gif|png|css|js files, and send the rest directly to the backend. 
Please correct me if I am wrong.

Isaac



More information about the nginx mailing list