Welcome! Log In Create A New Profile

Advanced

How to replace Varnish with NGINX

Posted by jost 
How to replace Varnish with NGINX
September 18, 2013 11:28AM
Im dealing with some forum software that always sends a no-cache header and a cookie, even for guests.

This always causes my NGINX fastcgi_cache to be bypassed :(


Varnish is typically used in front of NGINX on these forums to act as a micro-cache.
It accomplishes this with a special rule to cache things for 1 day, but if there is a no-cache header or Cookie being set, it will STILL CACHE for at least 60 seconds, effectively creating a microcache of 60 seconds for dynamic content.

Is there any way to pull this off with NGINX?

I have a bad feeling I will need an NGINX instance as a proxy to another NGINX instance.

Im hoping this can be done with a single instance and some slick fastcgi setup.

Is this even possible?
Re: How to replace Varnish with NGINX
September 19, 2013 11:22AM
SOLVED

Found fastcgi_ignore_headers Cache-Control Set-Cookie;
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 248
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready