Fixed thumbnail 404 issue#374
Conversation
Root cause investigationThe server-side pre-bake in this PR ( What's actually happeningLiip's EvidenceOn
The actual cause — running nginx config# Static files with caching
location ~* \.(jpg|jpeg|png|gif|ico|css|js|svg|woff|woff2|ttf|eot)$ {
expires 1y;
add_header Cache-Control "public, immutable";
access_log off;
}In nginx, regex locations ( This also explains:
This config is not the one in Proper fix (in the nginx image repo)location ~* \.(jpg|jpeg|png|gif|ico|css|js|svg|woff|woff2|ttf|eot)$ {
expires 1y;
add_header Cache-Control "public, immutable";
access_log off;
try_files $uri /index.php$is_args$args; # ← add this
}Or carve Liip's endpoint out ahead of the regex: location ^~ /media/cache/resolve/ {
try_files $uri /index.php$is_args$args;
}Concrete problems with the PHP "fix" in this PR
Recommend fixing this at the nginx layer instead. |
|
Closed. Will fix the issue in nginx config instead. |
Link to issue
#370
Link to ticket
https://leantime.itkdev.dk/#/tickets/showTicket/6871
Description
Added generation of thumbnail when it does not exist when mediaProvider is called.
Checklist