Welcome! Log In Create A New Profile

Advanced

Re: memcached Content-Type

June 11, 2010 06:58AM
On Fri, Jun 11, 2010 at 06:41:36AM -0400, Sergey Skipidarov wrote:

> Добрый день.
>
> nginx/0.6.39 rhel5
>
> Есть нжинкс и мемкеш
> В мемкеше лежит главная
> При выдаче страницы из мемкеша дописываю
> add_header Content-Type "text/html; charset=windows-1251";
>
> В итоге клиенту возвращается
> Запрос HTTP послан, ожидается ответ...
> HTTP/1.1 200 OK
> Server: nginx/0.6.39
> Date: Fri, 11 Jun 2010 10:36:45 GMT
> [b]Content-Type: application/octet-stream[/b]
> Content-Length: 63100
> Connection: keep-alive
> Keep-Alive: timeout=15
> [b]Content-Type: text/html; charset=windows-1251[/b]
>
> Как сделать чтобы запись Content-Type была одна?
>
> [b]Content-Type: application/octet-stream[/b] - это я так понял берется из [b]default_type[/b]..

Не нужно add_header.

location ... {
memcache_pass ...
default_type text/html;
charset windows-1251;


--
Игорь Сысоев
http://sysoev.ru

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

memcached Content-Type

Sergey Skipidarov June 11, 2010 06:41AM

Re: memcached Content-Type

Igor Sysoev June 11, 2010 06:58AM

Re: memcached Content-Type

Sergey Skipidarov June 11, 2010 07:09AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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