Quantcast
Channel: Active questions tagged html - Stack Overflow
Viewing all articles
Browse latest Browse all 67411

How to stop html network from downloading the same images?

$
0
0

This is my game: https://colonist.io/

In the game there is the chat section, which show who has rolled what dice & gained what resource written in HTML.

enter image description here

So whenever a dice is rolled around 10 images are printed. Each of these images do a network call. I would normally expect the network call to not download the same image but for some reason it does and I can't find a way to use it from cache.

The response headers are set to: public, max-age=14400 The request headers are set to: cache-control: no-cache

So I am guessing the problem has got to do with the request headers but I couldn't find a way to change it.

How can I make it so that when I print a new HTML <img src="../dist/images/card_lumber.svg?v56"> it doesn't do an extra network call?


Viewing all articles
Browse latest Browse all 67411

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>