Welcome! Log In Create A New Profile

Advanced

fastcgi_cache_key cache only the part afther "?"

Posted by danima 
fastcgi_cache_key cache only the part afther "?"
August 27, 2014 02:54AM
Hallo community
I have a question abot the fastcgi_cache_key parameter. I have the uri:

http://domain.com/tex_that_can_change/?640x2048/3/90/custom/323/2600323/0.jpg

Can nginx cache only the part after “?”, because the part before the ? can change and i wont to prevent that the same Image is cached twice?

My Configuration:

fastcgi_cache_path /ramdisk levels=1:2
keys_zone=CDN:2048m
inactive=2d
max_size=100G;

fastcgi_cache_key "$scheme$request_method$host$request_uri";
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 104
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready