Describe the bug
The caching doesn't seem to work when several requests get kicked off at once in a next js project.
To Reproduce
- Create a Next js page and inline an SVG there 2 places with
cacheRequests={true} and onLoad={(src, hasCache) => console.log(src, hasCache)}
- Create another page and inline that same SVG 1 place
- start next dev server and open the first page and then navigate to the second and back to the first
- You will see the following logs:
my-svg false
my-svg false
Navigation to second page
Navigation to the first page
Expected behavior
my-svg false
my-svg true <- This one should cache
Navigation to second page
Navigation to the first page
Describe the bug
The caching doesn't seem to work when several requests get kicked off at once in a next js project.
To Reproduce
cacheRequests={true}andonLoad={(src, hasCache) => console.log(src, hasCache)}Navigation to second page
Navigation to the first page
Expected behavior
Navigation to second page
Navigation to the first page