How to setup cache headers for files at Dropbox?

64 views
Skip to first unread message

odminstudios

unread,
Oct 1, 2011, 9:23:05 AM10/1/11
to High Performance WordPress
Hi all,

have some wordpress sites hosted on rather slow server, so downloading
template styles and images takes time. Decided to move some of my css,
img, swf and js template files to Dropbox.
This does make visual benefit to site load time. And increases firebug
page speed score - gives rank 90 of 100 (was 80).

But turns out I'm unable to control cache headers or whatever to store
Dropbox loaded file at user's computer. So returning visitor has to
load those files once again.

Anyone have an idea how to force those files be cached?

Only solution I see now is to load some basic css\img\swf, than check
if we have new visitor - load all other stuff from dropbox, else - for
a returning visitor load partualy from dropbox, partualy from my
server, slowly replacing all dropbox files.
This solution seems to be a bit weird one and rather complicated to
develop and maintain.

May be there is a better way?)

Kirrus

unread,
Oct 2, 2011, 6:30:44 AM10/2/11
to High Performance WordPress
Dropbox isn't really designed for that sort of load distribution. Your
best bet is to use something like Amazon CloudFront addon to S3.

Alternatively, you could try cloudflare.

Jonathan Warren

unread,
Oct 3, 2011, 7:26:48 AM10/3/11
to high-performa...@googlegroups.com
As has been said, Dropbox isn't meant to be used as a Content Delivery Network (CDN) for websites and I'm pretty sure it's against their ToS as well.

A plugin like W3 Total Cache has good integration with CDNs like Amazon CloudFront or Rackspace Cloud Files (as well as others) and can manage cache control headers as well.

Best,
--
Jonathan Warren - Web Consultant
http://nmecdesign.com

Baki Goxhaj

unread,
Oct 4, 2011, 10:21:22 AM10/4/11
to high-performa...@googlegroups.com
Hmmm, nice try. Keep in mind Dropbox has bandwidth limitation. That because Dropbox is not designed for that.

Kindly,

Baki Goxhaj
www.wplancer.com | proverbhunter.com | www.banago.info

Alexcp

unread,
Oct 5, 2011, 7:11:10 AM10/5/11
to High Performance WordPress
I think that if you are looking for a free service, lilke Kirrus said,
you should definetly go with Cloudflare.

odminstudios

unread,
Oct 6, 2011, 6:57:49 AM10/6/11
to High Performance WordPress
Thanks all, right now testing Cloudflare free service.

But still plan to use Dropbox for some projects. So if someone will
find a solution to set cache headers for Dropbox, plz share)

As for Dropbox bandwidth limitations what I found seems to be quite
enough for me:
"public links for free accounts may not use more than 10GB of
bandwidth per day while that limit is 250GB per day for paid Dropbox
accounts. The links are automatically suspended if any of your files
exceed that limit."
Proper caching will also help to stay on the safe side.
Reply all
Reply to author
Forward
0 new messages