L
L
Leonid2018-06-28 09:59:39
Yandex.Disk
Leonid, 2018-06-28 09:59:39

The preview link of an image file from Yandex.Disk is changing - what should I do?

I display images from the Yandex.Disk public folder directly on the site
I use the Disk REST API and do everything according to the instructions: https://tech.yandex.ru/disk/api/reference/public-d... I
send a request like:
5b348647917af061166963.png
I get a response like :
5b348670ee655068498116.png
well, I display images on my site using the link that is in the preview
, everything works, but after a while, apparently, the preview link becomes outdated and needs to be updated through a new request ...
maybe someone came across? Is this link update cache in the preview somehow configurable or is it unavoidable?
resaving yourself on a server is not an option, it's just convenient to display directly from Yandex.Disk.
I looked at how the link to the preview image changes:

https://downloader.disk.yandex.ru/preview/XXXXXXXXXXXXXX/NNNNNNNNN/ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ--aIAWbA%3D%3D?uid=0&filename=D0%B2%D0%B0%20%D0%9D.%D0%92._4185.jpg&disposition=inline&hash=&limit=0&content_type=image%2Fjpeg&tknv=v2&size=XXXL&crop=0

XXXXXXXXXXXXXX/NNNNNNNNN - that's the part that changes... I
wonder if this is related to the fact that I get access to files that are not published by themselves - but are only in the public folder...

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question