A Laravel page can return 200 while all its styles disappear. The template rendered successfully, but the generated asset URL points at a missing file or an old manifest. Inspect one rendered script URL before changing the CDN’s freshness rules.
Connect the hostname to the build
With Laravel’s Vite integration, configure the production asset base for the CDN hostname. Publish the compiled files at the same paths the generated page references. Verify the HTML entry point and a secondary asset referenced by its CSS, such as a font. Absolute URLs embedded in your source may follow a different path.
ASSET_URL=https://assets.example.comIdentify what versions your files
A current Vite build generally emits hashed paths. A legacy Mix deployment may identify a version with an id query parameter in its manifest. Inspect the generated URLs from your own version. If two builds share a filename and differ by that query parameter, dropping the parameter from the CDN key can serve the previous release.
Publish the files before switching the manifest
Upload the new artifacts and probe representative paths through the real CDN hostname. Release the matching application and manifest after those checks succeed. Keep older hashed files available to pages already open in browsers. A rollback must restore a matching template, manifest and set of files.
Sources & further reading
Reader questions
Why does the HTML point to the correct CDN while a font still fails?
Inspect the URL resolved from the compiled CSS, then check the actual status, media type and cross-origin response headers on the font request.
