How to cache image urls with query strings?

Nelson Marcos nelsonmarcos at gmail.com
Fri Feb 24 13:50:10 UTC 2017


Hi Oliver!

How is your proxy_cache_key configured?



Um abraço,
NM

2017-02-24 9:33 GMT-03:00 0liver <nginx-forum at forum.nginx.org>:

> We've recently started delivering image urls with query strings for
> cropping, like
>
> http://images-camping.info/CampsiteImages/116914_Large.
> jpg?width=453&height=302&mode=crop
>
> We've also successfully been using the NGINX cache for our images *before*
> adding the query strings.
>
> Unfortunately, with the query strings added, caching does not work anymore
> and all requests to above URL are passed to the upstream server. You can
> see
> this by inspecting the HTTP response headers for above url: X-Cache-Status
> is always MISS.
>
> Can anybody point to me to the necessary pieces of information to get
> caching for resources with query strings to work?
>
> Posted at Nginx Forum: https://forum.nginx.org/read.
> php?2,272608,272608#msg-272608
>
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20170224/d1157917/attachment.html>


More information about the nginx mailing list