You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.
Forum Discussion
raRaRa
7 years agoHelpful | Level 6
Temporary links to videos or images have no cache header set
Hey,
I noticed that temporary links don't have any cache header set. I suspect this is by design, but for use cases such as displaying media from Dropbox folder in a slideshow, it causes the browser to download large image and video files every time they are displayed. This causes un-necessary load for both my users and the Dropbox CDN/API.
It would be great if we could pass some kind of parameter that would trigger a cache header with the response.
I'm not aware of any method to enable caching with JavaScript. For images I'm using a reverse proxy to solve this, but I currently don't have one for videos.
Thanks.
- Thanks for the request! I can't make any promises, but I'm sending this along to the team.
- Greg-DBDropbox StaffThanks for the request! I can't make any promises, but I'm sending this along to the team.
- patsch06New member | Level 2
I think you can enabled a normal caching behaviour for content served from Dropbox by replacing the hostname.
so instead of
<img src="https://www.dropbox.com/s/xyzabc/foo.png?raw=1">
just use
<img src="https://dl.dropboxusercontent.com/s/xyzabc/foo.png">
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,895 PostsLatest Activity: 3 hours agoIf you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X or Facebook.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!