Svelte · Senior · Question 27 of 75
What is handleFetch used for?
- ✓Correct answer: Modifying
fetchrequests made with theload/actionfetchon the server, e.g. rewriting a public API URL to an internal one or adding credentials - 2Caching static files
- 3Intercepting browser navigation
Explanation
It runs in hooks.server.js for server-side fetches; handle is for incoming requests.