Questions tagged [nginx-cache]

23 questions
0
votes
0 answers

Nginx disable caching for part of the page

My site is powered by Wordpress and is highly customizable. nginx server + php-fpm. I'm setting up caching and there was a problem. The sidebar contains a block that contains calculations that are unique to each user and do not need to be cached.…
Alex
  • 1
0
votes
1 answer

Can nginx cache proxied responses unconditionally?

I'm trying to unconditionally cache an upstream server that provides neither an Expires nor a Cache-Control header. I'm not managing... Config: proxy_cache_path /tmp/nginx keys_zone=motus_cache:2m max_size=1g inactive=60m…
TvE
  • 1,016
  • 1
  • 11
  • 19
0
votes
0 answers

Delete cache in nginx for nonexistent file

How can I delete cache files for files which are not existing anymore or I deleted them from folder? I use nginx caching.
a11eksandar
  • 145
  • 2
  • 10
0
votes
0 answers

Remove image from cache when it is deleted in folder

I have folder with a lot of pictures. I want to resize this images and push them to cache so if someone wants to use them again they will be in cache. I achieve this with this nginx setup: server { server_name localhost; listen…
a11eksandar
  • 145
  • 2
  • 10
0
votes
0 answers

Nginx https reverse proxy is too slow

I have Implemented the Nginx cache with https reverse proxy in centos, My response time taking more than 1.5 seconds for each request. My nginx server configuration was 4 core, 8gb ram. My configuration looks like below (nginx.config) `user…
Debugger
  • 690
  • 1
  • 18
  • 41
0
votes
1 answer

Clear NGINX cache when origin changes response code

I have a specific need where I am caching 404 responses and not 200 for a request. So, when a request is sent, say for example.com/page_A and if the page is not yet setup in origin, then this 404 is cached for a minute as follows proxy_cache_valid…
0
votes
1 answer

Nginx FastCGI Cache Key Not working when using original URL

I have question about Nginx Cache This my Nginx Config fastcgi_cache_path /var/cache/nginx levels=1:2 keys_zone=fpmcache:100m max_size=70g inactive=3d use_temp_path=off; server { listen 80; server_name example.net; root…
0
votes
0 answers

Nginx Caching for specific location with regular expression

I want to cache the content from specific location only. But when i am trying to use regular expression, it is not caching. proxy_cache_path /AINginxService/nginx-1.16.1/cache/ levels=1:2 keys_zone=one:10m max_size=8g inactive=5d…
1
2