Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Почему-то не срабатывает запрет каширования статики в определенном локейшене...
- To: nginx-ru@xxxxxxxxx
- Subject: Почему-то не срабатывает запрет каширования статики в определенном локейшене...
- From: "Vladislav Prodan" <universite@xxxxxxx>
- Date: Mon, 03 Dec 2012 13:23:02 +0200
- Dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=ukr.net; s=ffe; h=Date:Message-Id:From:To:Subject:Content-Type:Content-Transfer-Encoding:MIME-Version; bh=IAQRzsy0XUXvHfpV5Tfo0LOofo2s9l7EC0IS5pF28Lc=; b=EiPQwLLPDNZdPbLqWdkMyi/1Bk6fZH7ZZpgdvoaLV3sKC9LZ3YbkbDXYIzCLroQQGZLmW1yezpfsbCj4gPy+LG40FFOVv0rqbBZc+At3V87wWgo7CDFOTwjnMslH7UpKuMnN+i5QfZwD2CoNW/qE81+G7b3fsa5TP2De8UxH1NI=;
Конфиг:
location /media/avatar/ {
expires -1;
add_header Last-Modified $sent_http_Expires;
}
Запрос с сервера:
> GET /media/avatar/super/6.jpg HTTP/1.1
> User-Agent: curl/7.24.0 (amd64-portbld-freebsd9.0) libcurl/7.24.0
> OpenSSL/0.9.8q zlib/1.2.5
> Host: XXX.YYYYY.com
> Accept: */*
>
< HTTP/1.1 200 OK
< Server: nginx/1.2.4
< Date: Mon, 03 Dec 2012 11:17:40 GMT
< Content-Type: image/jpeg
< Content-Length: 4089
< Last-Modified: Mon, 03 Dec 2012 10:58:42 GMT
< Connection: close
< Expires: Thu, 31 Dec 2037 23:55:55 GMT
< Cache-Control: max-age=315360000
< Accept-Ranges: bytes
<
# nginx -V
nginx version: nginx/1.2.4
TLS SNI support enabled
configure arguments: --prefix=/usr/local/etc/nginx --with-cc-opt='-I
/usr/local/include' --with-ld-opt='-L /usr/local/lib'
--conf-path=/usr/local/etc/nginx/nginx.conf --sbin-path=/usr/local/sbin/nginx
--pid-path=/var/run/nginx.pid --error-log-path=/var/log/nginx-error.log
--user=www --group=www --with-file-aio --with-ipv6
--http-client-body-temp-path=/var/tmp/nginx/client_body_temp
--http-fastcgi-temp-path=/var/tmp/nginx/fastcgi_temp
--http-proxy-temp-path=/var/tmp/nginx/proxy_temp
--http-scgi-temp-path=/var/tmp/nginx/scgi_temp
--http-uwsgi-temp-path=/var/tmp/nginx/uwsgi_temp
--http-log-path=/var/log/nginx-access.log --with-http_flv_module
--with-http_gzip_static_module --with-http_image_filter_module
--with-http_mp4_module --with-http_perl_module --with-http_secure_link_module
--with-http_stub_status_module --with-http_sub_module --with-pcre
--add-module=/usr/ports/www/nginx/work/passenger-3.0.17/ext/nginx
--add-module=/usr/ports/www/nginx/work/arut-nginx-rtmp-module-f1eeb39
--with-http_ssl_module
--
Vladislav V. Prodan
System & Network Administrator
http://support.od.ua
+380 67 4584408, +380 99 4060508
VVP88-RIPE
_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://mailman.nginx.org/mailman/listinfo/nginx-ru
|