levrage caching in nginx 404 not found error

A

Afshin Izadi

Guest
after adding caching setting to my server block some of the images does't load and it send 404 not found error

location ~* \.(jpg|jpeg|png|gif|ico|css|js)$ {
expires 365d;
add_header Pragma public;
add_header Cache-Control "public";
}

location ~* \.(pdf)$ {
expires 30d;
}


example

src="/laravel-filemanager/photos/2/path/path-path/my-file.jpg
and example of another file which is loaded

src="img/main-page.gif"
info

web server: nginx, framwork: laravel,laravel file manager: unisharp

I don't know whether the problem is about the deep path or because of that path are stored in databases, or maybe it is because of the laravel cache manager system

any solution or any way to detect what's under the hood.

thanks in advance

Continue reading...
 
Top