Links that will not be cached

Sometimes I would like a kind of “chartbook”. But image links are cached, so you always get an old version.

Example:


https://api.wsj.net/api/kaavio/charts/big.chart?nosettings=1&symb=ibm&uf=0&type=4&size=4&sid=2595&style=330&freq=9&entitlementtoken=0c33378313484ba9b46b8e24ded87dd6&time=1&rand=2018206971&compidx=aaaaa%3A0&ma=3&maval=50,200&lf=268435456&lf2=0&lf3=0&height=635&width=1045&mocktick=1

This will be downloaded and cached and then kind of frozen. I would prefer to have it gotten every time. Is there any possibility to do that in discourse?

(not sure why it’s in wiki category instead of e.g. forum feedback)

What you describe seems like an anti feature, it’s considered bad practice for a website (esp. a forum) to leech off other websites. (Plus it’s not great long term, if the source is no longer available or decides to serve bogus data it’s a bad user experience)

2 Likes

Your friendly neighborhood ChatGPT says:

2 Likes

Thanks. I think the caching did still not occur, I used a minute chart for this test. Probably caching happens every 24 hours or so.

I try the img way and check tomorrow, here it is:

Thanks for moving it. I understand what you mean, but the chartbook is a situation where you don’t want cached images because the charts are created real time. Works in other forums and I think bigcharts allows it.

Not that important, just nice to have.

Well, I expect the image to be fetched only once. We can ask @_MP , of course, but I guess what you see is expected and desires behavior.

1 Like

The first image (without the image tag) is cached: “https://forum.mustachianpost.com/uploads/default/original/3X/a/e/aeb6c734ceb76b44df0142094e6cce5cac330de6.gif

The second image with the img tag is (still?) not cached, there a real time rendering would work. When the market starts and it is not cached you should see an updated chart. Or maybe it is just not cached still because it is newer.

If it will not be downloaded and cached that would be the solution. It is kind of like a snapshot from a camera that changes or a video…

It depends on the link and on the forum software. Other forums do not cache links ever, so they do not need additional disk space. For the bigchart images real time rendering makes more sense so you get an actual chart every time you look at it. For static images the caching makes more sense, saves bandwidth at cost of disk.

If you paste a URL to an image into the editor, the image will be uploaded. And uploaded images are not changed. I think @assemblyrequired has already mentioned the best solution: Simply embed the image from an external source. Either with an HTML or with the Markdown tag.

Most other forum software I know can’t upload images using a URL, they just embed the image. As described by @assemblyrequired. To me, it seems as if everything is working as it should :slight_smile:

  • Upload (from file or URL): does not change any more
  • Embed: No longer in control of the Forum software
1 Like

OK, the raw html img seems to work as you can see when you scroll back. The link was copied and is therefor yesterday’s version while the raw img version is actual.

Thanks

Again my question: why does the software sometimes download copies of images to cache and sometimes it downloads it in real-time.

I did use the exact same syntax here in my second attempt (“<img src=”) as I did here: Chartbook of my mechanical momentum strategy - #8 by cubanpete_the_swiss

I would understand an answer “it is not possible” but why did it work in this test thread???

BTW: I think it is a nice feature to have dynamically created images shown, many forums allow that. The textbook example is a chartbook. The forum saves storage space at the cost of bandwidth.