Welcome! Log In Create A New Profile

Advanced

How to cache image urls with query strings?

February 24, 2017 07:33AM
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?

Oliver
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
blog: http://shades-of-orange.com/
home: http://teamaton.com/
Subject Author Posted

How to cache image urls with query strings?

0liver February 24, 2017 07:33AM

Re: How to cache image urls with query strings?

Nelson Marcos February 24, 2017 08:52AM

Re: How to cache image urls with query strings?

0liver February 24, 2017 09:23AM

Re: How to cache image urls with query strings?

jeanpaul February 26, 2017 05:12AM

Re: How to cache image urls with query strings?

dewanggaba February 24, 2017 09:44AM

Re: How to cache image urls with query strings?

Francis Daly March 04, 2017 07:04AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 311
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready