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;
}
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community