I am caching an offline.html
page. The cache is created properly and even an offline.html
page is present inside the cache. Additionally, the build folder also has the right HTML file. However, the content of the offline.html
is always React's index.html
in both cache and source tab of the Chrome dev tools. Where is my mistake? Could this be an issue with serve?
Asked
Active
Viewed 120 times
1

AviatingFotographer
- 318
- 2
- 12
1 Answers
0
Turns out serve -s build
uses index.html for all not found requests because of the -s flag.

AviatingFotographer
- 318
- 2
- 12
-
Can you share your code? Since I am also having the same issue. – Kunal Ukey Nov 13 '22 at 08:14