Welcome! Log In Create A New Profile

Advanced

Disable Caching

July 19, 2012 01:08PM
All,

I have an nginx config that looks like this...

user www-data;
worker_processes 4;
pid /var/run/nginx.pid;

events {
worker_connections 768;
# multi_accept on;
}

http {
sendfile on;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 65;
types_hash_max_size 2048;

include /etc/nginx/mime.types;
default_type application/octet-stream;

access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;

gzip on;
gzip_disable "msie6";

include /etc/nginx/conf.d/*.conf;
include /etc/nginx/sites-enabled/*;
}

In the included sites-enabled/portal file, there is a server section that has:

server {
listen 80;
server_name portal.xxx.com;
rewrite ^ https://portal.xxx.com$request_uri? permanent;
proxy_no_cache 1;
proxy_cache_bypass 1;
}

Note that both proxy_no_cache and proxy_cache_bypass are set to 1. However, it appears that caching _is_ occurring.

Why? How do we disable this?

Thanks,
Doug.
Subject Author Posted

Disable Caching

dgarstang July 19, 2012 01:08PM

Re: Disable Caching

Valentin V. Bartenev July 19, 2012 01:20PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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