S3, Cloudflare, and Costs for Data Transfer

#1

Hey All!

Recently we setup a sub domain that is assigned through cloudflare that points to a S3 bucket. We did this so we could cache the images at the CDN level and avoid too many requests to our S3 bucket and thus making our Bandwidth usage higher, which increases our Data Transfer Out for the month.

We have also added the following headers to our images:
accept-ranges: bytes cache-control: public, max-age=2592000 cf-bgj: imgq:85 cf-cache-status: HIT cf-polished: qual=85, origFmt=jpeg, origSize=6174325 cf-ray: 4c25f6534a1c580d-DFW content-disposition: inline; filename="Removable-Star-Wallpaper-DIY-click-through-for-tutorial-1-17.webp" content-length: 215624 content-type: image/webp date: Thu, 04 Apr 2019 20:16:49 GMT etag: "fb7b1df78905fc56cd5be7dae5809518" expect-ct: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" expires: Sat, 04 May 2019 20:16:49 GMT last-modified: Thu, 14 Mar 2019 18:59:05 GMT server: cloudflare status: 200 vary: Accept

And still we are not seeing a dent to our overall Data Transfer Out on the server. Any suggestions or thoughts?

I believe that 70% of our users are new users, but still seems a bit odd that it would not make a dent at all.

I do find it weird that the content type is serving as webp and the filename registers it so as well. But I’m running out of things to check :frowning:

Any advice or help would be greatly appreciated! Thanks!

0 Likes

#2

adding is fine
cache-control: public, max-age=2592000

The rest might could generate errors:

cf-cache-status
report-uri
server
cf-ray
cf-cache-status
0 Likes

#3

I believe those headers
cf-cache-status report-uri server cf-ray cf-cache-status

are added by cloudflare, not me. What type of problems could they cause?

0 Likes

#4

This phrase generated confusion.
Which header do see when getting an object directly from S3?

0 Likes

#5

Gotcha. Yeah thats my fault sorry!


These are the headers

0 Likes

closed #6

This topic was automatically closed after 14 days. New replies are no longer allowed.

0 Likes