Fragment identifier
Posted: Sat Nov 18, 2017 8:21 am
Does MicroPython support URLs with fragment identifiers?
https://en.wikipedia.org/wiki/Fragment_identifier
I'm writing a small web server that polls a JPEG image that constantly changes (e.g.. like a live webcam feed). It's currently working by adding an unique cache-busting query parameter to the URL. Like this:
newImage.src = "image.jpg?t=" + new Date().getTime();
However, I'd like to serve the images with the header Cache-control: max-age=0, must-revalidate, and add an unique memcache-busting fragment identifier to the URL instead, such as:
newImage.src = "image.jpg#" + new Date().getTime();
But that doesn't work. Any suggestions?
https://en.wikipedia.org/wiki/Fragment_identifier
I'm writing a small web server that polls a JPEG image that constantly changes (e.g.. like a live webcam feed). It's currently working by adding an unique cache-busting query parameter to the URL. Like this:
newImage.src = "image.jpg?t=" + new Date().getTime();
However, I'd like to serve the images with the header Cache-control: max-age=0, must-revalidate, and add an unique memcache-busting fragment identifier to the URL instead, such as:
newImage.src = "image.jpg#" + new Date().getTime();
But that doesn't work. Any suggestions?