добрый день. возник вопрос по настройкам кеширования. с приватной проксей сайт не отдает значения подсказок (например, город), а без прокси все отрабатывает.
Заголовки с проксей
Запрос
Host:
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.143 Safari/537.36
Accept: application/json, text/javascript, */*; q=0.01
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
X-Requested-With: XMLHttpRequest
Referer:
Content-Length: 9
Cookie: _fds=cbdb152a036bafc094355be5ba6efc5ea98b0a6be8ff470db8; fy_lc=de_DE; _ga=GA1.2.963655127.1479818631; _gat=1
Proxy-Authorization: Basic bWFya29mZjE6MnVtZWdFZ0E2
Connection: keep-alive
Ответ
Date: Tue, 22 Nov 2016 12:48:46 GMT
Server: Apache
X-XSS-Protection: 1; mode=block
Cache-Control: private, no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Expires: Thu, 09 Feb 1978 12:00:00 GMT
Pragma: no-cache
X-Content-Type-Options: nosniff
Vary: Accept-Encoding
Content-Type: text/html;charset=utf-8
X-Cnection: close
X-Cache: MISS from funky
X-Cache-Lookup: MISS from funky:30750
Connection: keep-alive
Transfer-Encoding: chunked
Без прокси
Запрос
Host:
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.143 Safari/537.36
Accept: application/json, text/javascript, */*; q=0.01
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
X-Requested-With: XMLHttpRequest
Referer:
Content-Length: 7
Cookie: _fds=cbdb152a036bafc094355be5ba6efc5ea98b0a6be8ff470db8; fy_lc=de_DE; _ga=GA1.2.963655127.1479818631; _gat=1
Connection: keep-alive
Ответ
Date: Tue, 22 Nov 2016 13:17:24 GMT
Server: Apache
X-XSS-Protection: 1; mode=block
Cache-Control: private, no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Expires: Thu, 09 Feb 1978 12:00:00 GMT
Pragma: no-cache
X-Content-Type-Options: nosniff
Vary: Accept-Encoding
Content-Type: text/html;charset=utf-8
X-Cnection: close
Transfer-Encoding: chunked
Предполагаю, что ошибка из-за того, что прокси держит соединение открытым Connection: keep-alive, хотя нужно закрыть.
В файле greprefs.js хотел заменить network.http.proxy.keep-alive c true на false, но написано, что
keep-alive option is effectively obsolete. Nevertheless it'll work with some older 1.0 servers:
Поэтому вопрос что делать?
Заранее благодарю.
Заголовки с проксей
Запрос
Host:
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.143 Safari/537.36
Accept: application/json, text/javascript, */*; q=0.01
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
X-Requested-With: XMLHttpRequest
Referer:
Content-Length: 9
Cookie: _fds=cbdb152a036bafc094355be5ba6efc5ea98b0a6be8ff470db8; fy_lc=de_DE; _ga=GA1.2.963655127.1479818631; _gat=1
Proxy-Authorization: Basic bWFya29mZjE6MnVtZWdFZ0E2
Connection: keep-alive
Ответ
Date: Tue, 22 Nov 2016 12:48:46 GMT
Server: Apache
X-XSS-Protection: 1; mode=block
Cache-Control: private, no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Expires: Thu, 09 Feb 1978 12:00:00 GMT
Pragma: no-cache
X-Content-Type-Options: nosniff
Vary: Accept-Encoding
Content-Type: text/html;charset=utf-8
X-Cnection: close
X-Cache: MISS from funky
X-Cache-Lookup: MISS from funky:30750
Connection: keep-alive
Transfer-Encoding: chunked
Без прокси
Запрос
Host:
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.143 Safari/537.36
Accept: application/json, text/javascript, */*; q=0.01
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
X-Requested-With: XMLHttpRequest
Referer:
Content-Length: 7
Cookie: _fds=cbdb152a036bafc094355be5ba6efc5ea98b0a6be8ff470db8; fy_lc=de_DE; _ga=GA1.2.963655127.1479818631; _gat=1
Connection: keep-alive
Ответ
Date: Tue, 22 Nov 2016 13:17:24 GMT
Server: Apache
X-XSS-Protection: 1; mode=block
Cache-Control: private, no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Expires: Thu, 09 Feb 1978 12:00:00 GMT
Pragma: no-cache
X-Content-Type-Options: nosniff
Vary: Accept-Encoding
Content-Type: text/html;charset=utf-8
X-Cnection: close
Transfer-Encoding: chunked
Предполагаю, что ошибка из-за того, что прокси держит соединение открытым Connection: keep-alive, хотя нужно закрыть.
В файле greprefs.js хотел заменить network.http.proxy.keep-alive c true на false, но написано, что
keep-alive option is effectively obsolete. Nevertheless it'll work with some older 1.0 servers:
Поэтому вопрос что делать?
Заранее благодарю.