Интересно, есть ли способ перезаписать / отбросить ответ Cache-Control: private с удаленного прокси-сервера.
[мой сервер] -> [удаленный сервер]
Настройка для моего сервера site-available / default:
server {
listen 80; ## listen for ipv4
listen [::]:80 default ipv6only=on; ## listen for ipv6
server_name localhost;
location / {
if ($arg_AWSACCESSKEY) {
proxy_pass http://localhost:8088;
}
try_files $uri $uri/ /index.php /index.html /index.htm;
}
# other setting goes here
}
Настройка моего сервера site-available / remote:
server {
listen 8088; ## listen for ipv4; this line is default and implied
# Make site accessible from http://localhost/
# server_name localhost;
location / {
proxy_pass http://remoteserver;
proxy_set_header Host remoteserverhostname.com;
proxy_ignore_headers Cache-Control Expires;
proxy_pass_header Set-Cookie;
}
}
Но Firebug все равно сообщает заголовок содержит Cache-Control: private. Я что-то пропустил?
Спасибо.