I want to set Cache-Control: no-cache
for my index.html, as recommended in docs.
For my js chunks, I can locate them in my dev tools' network tab and see the headers there:
But my index.html
is not present in the network tab:
Why is that? And how can I make sure it has the Cache-Control: no-cache
header on it?
I can see index in sources tab
The app is served by production server (not by CRA dev server), and CRA service worker is disabled.
The reason I don't see a request labeled "index" in the network tab is because I am not requesting index.html
directly, I get it as a response when requesting a specific in-app url. I can find the respective request in devtools network tab under current URL, and it has text/html
in the type
column.