Welcome! Log In Create A New Profile

Advanced

Weird issues with fastcgi_cache and images

Bertrand Caplet
March 05, 2015 01:28PM
Hey guys,
I got a strange issues when I activate fastcgi_cache some images doesn't
load on first load of the page but when hitting refresh it loads.

Here's my configuration :
location ~ \.php$ {
# FastCGI optimizing
fastcgi_buffers 4 256k;
fastcgi_buffer_size 128k;
fastcgi_connect_timeout 3s;
fastcgi_send_timeout 20s;
fastcgi_read_timeout 20s;
fastcgi_busy_buffers_size 256k;
fastcgi_temp_file_write_size 256k;
reset_timedout_connection on;
# FASTCGI CACHE
fastcgi_cache WORDPRESS;
fastcgi_cache_key "$scheme$request_method$host$request_uri";
fastcgi_cache_use_stale error timeout invalid_header
http_500;
fastcgi_ignore_headers Cache-Control Expires Set-Cookie;
fastcgi_cache_valid any 1h;
fastcgi_cache_bypass $no_cache;
fastcgi_no_cache $no_cache;
fastcgi_cache_min_uses 2;
[...]
}

and I do have exclude conf for some cookies, wordpress administration
etc. Like this :
if ($request_method = POST) {
set $no_cache 1;
}

For testing purpose you can see here :
https://www.gamespirits.com/bande-dessinee/serie-bastien-vives-chez-shampooing/

Thanks in advance,
--
CHUNKZ.NET - script kiddie and computer technician
Bertrand Caplet, Flers (FR)
Feel free to send encrypted/signed messages
Key ID: FF395BD9
GPG FP: DE10 73FD 17EB 5544 A491 B385 1EDA 35DC FF39 5BD9

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Weird issues with fastcgi_cache and images

Bertrand Caplet March 05, 2015 01:28PM

Re: Weird issues with fastcgi_cache and images

itpp2012 March 05, 2015 02:49PM

Re: Weird issues with fastcgi_cache and images

Bertrand Caplet March 06, 2015 01:22PM

Re: Weird issues with fastcgi_cache and images

itpp2012 March 06, 2015 02:24PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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