Re: Invalid HTTP_IF_NONE_MATCH request header

2017-06-15 Thread Etienne Robillard
Le 2017-06-15 à 19:02, Francis Daly a écrit : On Thu, Jun 15, 2017 at 06:29:44PM -0400, Etienne Robillard wrote: Le 2017-06-15 à 18:09, Francis Daly a écrit : Hi there, What request do you make? GET http://localhost/ Ok. Which location{} is used to handle that request? location / Ok.

Re: Invalid HTTP_IF_NONE_MATCH request header

2017-06-15 Thread Francis Daly
On Thu, Jun 15, 2017 at 06:29:44PM -0400, Etienne Robillard wrote: > Le 2017-06-15 à 18:09, Francis Daly a écrit : Hi there, > >What request do you make? > GET http://localhost/ Ok. > >Which location{} is used to handle that request? > location / Ok. What file-on-the-filesystem is the file you

Re: Invalid HTTP_IF_NONE_MATCH request header

2017-06-15 Thread Valentin V. Bartenev
On Thursday 15 June 2017 17:45:49 Etienne Robillard wrote: > Hi, > > I can confirm that my python script is working from the command line. > The server (wsgiref) sends a ETag on the initial request with the 200 OK > status code. Additional requests will have the request header > If-None-Match s

Re: Invalid HTTP_IF_NONE_MATCH request header

2017-06-15 Thread Etienne Robillard
Hi Francis, Le 2017-06-15 à 18:09, Francis Daly a écrit : What request do you make? GET http://localhost/ Which location{} is used to handle that request? location / You appear to do something with HTTP_IF_NONE_MATCH in "location /" but not in "location /wiki". The /wiki location is handl

Re: Invalid HTTP_IF_NONE_MATCH request header

2017-06-15 Thread Francis Daly
On Thu, Jun 15, 2017 at 01:46:42PM -0400, Etienne Robillard wrote: Hi there, > I'm trying to implement conditional requests in Django-hotsauce and > would like to use HTTP_IF_NONE_MATCH to return a 304 Not Modified > response. However in nginx the value of HTTP_IF_NONE_MATCH is > incorrect (a emp

Re: Invalid HTTP_IF_NONE_MATCH request header

2017-06-15 Thread Etienne Robillard
Hi, I can confirm that my python script is working from the command line. The server (wsgiref) sends a ETag on the initial request with the 200 OK status code. Additional requests will have the request header If-None-Match set with the correct ETag value and a 304 Not Modified response is ret

Invalid HTTP_IF_NONE_MATCH request header

2017-06-15 Thread Etienne Robillard
Hi, I'm trying to implement conditional requests in Django-hotsauce and would like to use HTTP_IF_NONE_MATCH to return a 304 Not Modified response. However in nginx the value of HTTP_IF_NONE_MATCH is incorrect (a empty string is returned). Here's my nginx config: # configuration file /etc/