Answer the question
In order to leave comments, you need to log in
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:
I get a response like :
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
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question