Maxim Dounin
November 09, 2010 07:12PM
Hello!

On Tue, Nov 09, 2010 at 05:22:04PM -0500, rchen9012 wrote:

> need help with nginx configuration, I had configured a very simple
> static file caching or direct from disk, but nginx did not return 304
> when if-modified-since header is in the request.
>
>
> if-modified-since exact;

Just a side note: there is no such directive; there is
if_modified_since one.

>
> location / {
>
> root /www;
> index index.php index.html index.htm;
> expires 1d;
>
> }

The basic question is: how did you test?

Hint: never trust browsers and various "http headers" plugins, in
many cache-related cases they show incorrect info. Looking what
happens on the wire (tcpdump, wireshark) or at least intercepting
traffic with debugging proxy (fiddler) is recommended.

Maxim Dounin

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

nginx 0.8.53/0.7.67 unable to return 304

rchen9012 November 09, 2010 05:22PM

Re: nginx 0.8.53/0.7.67 unable to return 304

rchen9012 November 09, 2010 05:28PM

Re: nginx 0.8.53/0.7.67 unable to return 304

Maxim Dounin November 09, 2010 07:12PM

Re: nginx 0.8.53/0.7.67 unable to return 304

rchen9012 November 10, 2010 09:40AM

Re: nginx 0.8.53/0.7.67 unable to return 304

Igor Sysoev November 10, 2010 09:48AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 295
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