cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
If you’ve changed your email address, now's the perfect time to update it on your Dropbox account and we’re here to help! Learn more here.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Re: Temporary links to videos or images have no cache header set

Temporary links to videos or images have no cache header set

raRaRa
Helpful | Level 6
Go to solution

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.

1 Accepted Solution

Accepted Solutions

Greg-DB
Dropbox Staff
Go to solution
Thanks for the request! I can't make any promises, but I'm sending this along to the team.

View solution in original post

2 Replies 2

Greg-DB
Dropbox Staff
Go to solution
Thanks for the request! I can't make any promises, but I'm sending this along to the team.

patsch06
New member | Level 2
Go to solution

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">
Need more support?