Laravel-Backpack / basset

Better asset helpers for Laravel apps.
MIT License
155 stars 11 forks source link

[HAS-FIX] CDN issues loading assets #119

Closed FabioGuin closed 5 months ago

FabioGuin commented 5 months ago

Apparently CloudFlare today does not allow additional parameters in the URL, for example: https://unpkg.com/select2@4.0.13/dist/css/select2.min.css?f87fe3cd3b0b

While it works https://unpkg.com/select2@4.0.13/dist/css/select2.min.css

This is blocking the work.

pxpm commented 5 months ago

Hey @FabioGuin

Thanks for the report.

We are tracking this issue here: https://github.com/Laravel-Backpack/community-forum/issues/928

rich-williamson commented 5 months ago

This affects anyone using Backpack. If you are using backpack in a production environment don't do a php artisan basset:clear as you'll break your production site.

You can set dev_mode to false in your config/backpack/basset.php to load the assets from the local file system but this of course only works if you have previously downloaded assets successfully. Again don't clear the your Basset cache.

dauvray commented 5 months ago

the problem is always here with 1.3.1

image

pxpm commented 5 months ago

@dauvray can you do php artisan basset:clear && php artisan basset:cache ?

Let me know the output.

Cheers

pxpm commented 5 months ago

To avoid having duplicate conversations about the same subject, I am closing this issue in favor of https://github.com/Laravel-Backpack/community-forum/issues/928

Please post any feedback you need there.

@dauvray I opened an issue for your problem. Please let's move the conversation over there.