Author Topic: Dynamic Image Hosting  (Read 1233 times)

For some reason, it won't let me make the file public, and it allows only me to see it.  If I go into the sharing options of either the folder or the file, it only allows to share with individual emails or Dropbox accounts.
can you see this?



if you can, you should be able to go to the preview for the image, click "share" in the top right, and copy the URL. then make sure it ends with "?dl=1" and it should work

then make sure it ends with "?dl=1" and it should work
or, if you prefer, you can change the "www" to "dl"

https://dl.dropbox.com/s/owe7kfh37ffp8g8/mem.png

just note that it'll redirect to dl.dropboxusercontent.com

edit: although i think your browser would cache the image that way
nope, it doesn't cache it, but it does send the 304 Not Modified header this way
« Last Edit: February 17, 2016, 10:37:56 PM by dargereldren »

either way, the cache-control header is set to "max-age=0" so browsers shouldn't cache it. it's pretty clear that mine doesn't, and I'm using chrome 48.0
« Last Edit: February 17, 2016, 03:16:50 PM by Foxscotch »

The problem is how to embed a randomizer in bb code
i didn't see he wanted it in bbcode, but my point still stands

just have a page without it load it. page A without the parameter loads the load page with it.

Testing.  Can you see this?



nope, it doesn't cache it, but it does send the 304 Not Modified header this way
I'm only getting that for an html file that is apparently downloaded, not the image

anyway yeah that works fine. and my browser continues to not cache it, so I think you're good, assuming firefox behaves similarly

yes i can see that
Perfect.  Is updating the image as simple as replacing the old one with a file of the same name?

Perfect.  Is updating the image as simple as replacing the old one with a file of the same name?
yep

I'm only getting that for an html file that is apparently downloaded, not the image