Its not in the Inertia docs because its not something that comes from Inertia.
It tells the browser to preload the assets to reduce the load time of a page when this asset it used on that page, which improves the performance and user experience.
So, the middleware just looks at my vite assets, e.g. css/js and then adds a Link header for each resource, making it load faster. Have I understood that correctly?
@gych Thanks for your clear explanations!! I am a novice coder at best and new to Laravel overall, so I truly appreciate anyone taking the time to explain things so well!! So my question particularly about this \Illuminate\Http\Middleware\AddLinkHeadersForPreloadedAssets is if I am building an API delivery system ONLY, and do not need much of a front end if any at all, then this being in the bootstrap/app.php is unneccessary, right?
I am trying to hunt down a few small conflicts with my setup just curious. THANKS!