download free 30 days trial version buy Bucket Explorer

Enable Cache of files on S3 and cloud

On-line support for Bucket Explorer for Amazon S3

Enable Cache of files on S3 and cloud

Postby 0207100 » Mon Oct 04, 2010 1:17 pm

How do I enable caching of files uploaded to S3.


I am trying to have the headers passed so images are cached from S3, i have tries htaccess but read that it can be done with Bucket Explorer
0207100
 
Posts: 1
Joined: Mon Oct 04, 2010 1:14 pm

Re: Enable Cache of files on S3 and cloud

Postby Neelam Sharma » Tue Oct 05, 2010 9:55 am

Yes, You can enable caching for your object using Bucket Explorer.

Follow these steps-
1. Upload your images in one bucket.
2. Update its meta-data using 'Properties' or right click option 'Update Metadata'.
3. Add meta-data Key as Cache-Control.
4. Insert its Values as max-age=600 (provide time in seconds for e.g. 15 days= 3600 * 24 * 15 = 1296000).
5. Save this metadata.
6. Update the ACL of that objects as "Read" permission to "All Users".
Note- if you want access of HTML file then add values as max-age=600, must-revalidate.

Now you have two option to access objects either using Web URL or with Cloud Front distribution.
Using Web URL -
Generate its web URL using "Web Url" option from object tool bar and run it.

Using Cloud Front distribution- For accessing object, you must create public distribution on it.
Then follow this steps-
1. Copy domain name of your bucket from distribution list.
2. Now create URL as - domain-name/object-name. (Example- djuw123nm32ds.cloudfront.net/abcimage.jpeg)
3. Run this URL.

Update Metadata- http://www.bucketexplorer.com/documenta ... adata.html

Thanks, Neelam
Neelam Sharma
 
Posts: 279
Joined: Wed Feb 10, 2010 1:02 pm


Return to Bucket Explorer for Amazon S3 - Support Forum



cron