kchungradio / s3-bucket-listing

Create nice directory listings for s3 buckets with javascript and HTML.
0 stars 0 forks source link

doesn't cache response #2

Open publicityreform opened 6 years ago

publicityreform commented 6 years ago

has to make the call to s3 and format the response as a directory tree every time a page is loaded... could some info about the tree / files / items be stored in cache to speed things up?

tim-phillips commented 6 years ago

We could definitely do a cache, but since this is in the browser it’d be per browser and you’d get loading on first visit. But at least subsequent visits would be instant, until the cache invalidates after some amount of time.

To get worldwide caching we’d need a server to sit in between the browser and aws.

How long is the load?

tim-phillips commented 6 years ago

Oh I see loading (this should take about 30 seconds)