Support the ongoing development of Laravel.io →
posted 1 year ago
0

Please show how you are loading images in your code.

0

Do you use Nginx? If so, than you can do the following:

location ~* \.(css|js|jpg|jpeg|svg|png|webp|gif|ico|woff|woff2|ttf|otf|eot|ogg|mp3|mp4) {
    expires                 max;
    add_header              Pragma public;
    add_header              Cache-Control "public";
    add_header              Access-Control-Allow-Origin "*";

    try_files               $uri $uri/ /index.php$is_args$args;
}
Last updated 1 year ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Aaron Robb aaronrobb Joined 8 Sep 2022

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.