<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>possibble to use fastcgi cache with set-cookie header</title>
<description>Hi,
I'm wondering if it is possible to force fastcgi_cache even when there 
is a Set-Cookie header? I was testing with
http://nginxtest.exotica.org.uk/index.php
which sets
Set-Cookie: site=nginxtest; HttpOnly
Expires: Thu, 19 Nov 1981 00:00:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, 
pre-check=0
Pragma: no-cache
but I can only cache it with nginx if i remove the Set-Cookie header.
my config.
http {
fastcgi_cache_path /var/cache/nginx levels=1:2 
keys_zone=fastcgicache:10M;
}
server {
listen 80;
server_name nginxtest.exotica.org.uk;
root /path/to/website
index index.html index.php;
location ~ \.php$ {
fastcgi_cache_valid any 10m;
fastcgi_cache_key $host$request_uri;
fastcgi_ignore_headers Cache-Control Expires;
fastcgi_cache fastcgicache;
fastcgi_pass unix:/somepath/fcgi.sock
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx</description><link>http://forum.nginx.org/read.php?2,121511,121511#msg-121511</link><lastBuildDate>Sat, 25 May 2013 18:43:37 -0400</lastBuildDate>
<generator>Phorum 5.2.16</generator>
<item>
<guid>http://forum.nginx.org/read.php?2,121511,121517#msg-121517</guid>
<title>Re: possibble to use fastcgi cache with set-cookie header</title><link>http://forum.nginx.org/read.php?2,121511,121517#msg-121517</link><description><![CDATA[2010/8/20 Jools Wills &lt;buzz@exotica.org.uk&gt;:<br />&gt;&gt; fastcgi_ignore_headers Cache-Control Expires;<br />&gt;<br />&gt; Changing this to<br />&gt;<br />&gt; fastcgi_ignore_headers Cache-Control Expires Set-Cookie;<br />&gt;<br />&gt; seems to do the job, but this is not documented anywhere I could find (not<br />&gt; on the wiki for example). Is this correct?<br /><br />yes it is. But be careful using this on a site where cookies are used<br />for authentication and cannot be switch between users.<br /><br />&gt; if so, I'll add it to the wiki<br />&gt; (and if it is what version was this introduced?)<br />&gt;<br />&gt; I'm running nginx 0.8.49 btw.<br />&gt;<br />&gt; Best Regards<br />&gt;<br />&gt; Jools<br />&gt;<br />&gt; _______________________________________________<br />&gt; nginx mailing list<br />&gt; nginx@nginx.org<br />&gt; http://nginx.org/mailman/listinfo/nginx<br />&gt;<br /><br />_______________________________________________<br />nginx mailing list<br />nginx@nginx.org<br />http://nginx.org/mailman/listinfo/nginx]]></description>
<dc:creator>Jérôme Loyet</dc:creator>
<category>Nginx Mailing List - English</category><pubDate>Thu, 19 Aug 2010 18:42:00 -0400</pubDate></item>
<item>
<guid>http://forum.nginx.org/read.php?2,121511,121513#msg-121513</guid>
<title>Re: possibble to use fastcgi cache with set-cookie header</title><link>http://forum.nginx.org/read.php?2,121511,121513#msg-121513</link><description><![CDATA[&gt; fastcgi_ignore_headers Cache-Control Expires;<br /><br />Changing this to<br /><br />fastcgi_ignore_headers Cache-Control Expires Set-Cookie;<br /><br />seems to do the job, but this is not documented anywhere I could find<br />(not on the wiki for example). Is this correct? if so, I'll add it to<br />the wiki (and if it is what version was this introduced?)<br /><br />I'm running nginx 0.8.49 btw.<br /><br />Best Regards<br /><br />Jools<br /><br />_______________________________________________<br />nginx mailing list<br />nginx@nginx.org<br />http://nginx.org/mailman/listinfo/nginx]]></description>
<dc:creator>Jools Wills</dc:creator>
<category>Nginx Mailing List - English</category><pubDate>Thu, 19 Aug 2010 18:30:02 -0400</pubDate></item>
<item>
<guid>http://forum.nginx.org/read.php?2,121511,121511#msg-121511</guid>
<title>possibble to use fastcgi cache with set-cookie header</title><link>http://forum.nginx.org/read.php?2,121511,121511#msg-121511</link><description><![CDATA[Hi,<br /><br />I'm wondering if it is possible to force fastcgi_cache even when there<br />is a Set-Cookie header? I was testing with<br /><br />http://nginxtest.exotica.org.uk/index.php<br /><br />which sets<br /><br />Set-Cookie: site=nginxtest; HttpOnly<br />Expires: Thu, 19 Nov 1981 00:00:00 GMT<br />Cache-Control: no-store, no-cache, must-revalidate, post-check=0,<br />pre-check=0<br />Pragma: no-cache<br /><br />but I can only cache it with nginx if i remove the Set-Cookie header.<br /><br />my config.<br /><br />http {<br />fastcgi_cache_path /var/cache/nginx levels=1:2<br />keys_zone=fastcgicache:10M;<br />}<br /><br />server {<br />listen 80;<br />server_name nginxtest.exotica.org.uk;<br /><br />root /path/to/website<br />index index.html index.php;<br /><br />location ~ \.php$ {<br />fastcgi_cache_valid any 10m;<br />fastcgi_cache_key $host$request_uri;<br />fastcgi_ignore_headers Cache-Control Expires;<br />fastcgi_cache fastcgicache;<br />fastcgi_pass unix:/somepath/fcgi.sock<br />fastcgi_index index.php;<br />fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;<br />include fastcgi_params;<br />}<br /><br />}<br /><br />_______________________________________________<br />nginx mailing list<br />nginx@nginx.org<br />http://nginx.org/mailman/listinfo/nginx]]></description>
<dc:creator>Jools Wills</dc:creator>
<category>Nginx Mailing List - English</category><pubDate>Thu, 19 Aug 2010 18:18:01 -0400</pubDate></item>
</channel>
</rss>