You are viewing the legacy StackPath SecureCDN Help Center. Please use support.stackpath.com if you signed up after July 1, 2018 or log in through control.stackpath.com

StackPath Support

Edge Rules: How to Hide S3 Headers

In this article, we will be addressing how to hide headers from your Amazon S3 origin. With your origin being behind CDN as a proxy  - there is no way for end users to get information about where your origin is hosted - unless that origin passes specific headers like Amazon S3 does. With this easy Edge Rule, you can ensure full anonymity of your hosting through settings within StackPath CDN.

Skill Level: Easy, one line directives, no complex configuration

Time Required: 5 minutes

Ingredients 

  • Edge Rules

    • CURL Example Before
      curl -I http://zone-company.stackpathdns.com/styles/file.css
      HTTP/1.1 200 OK 
      Date: Wed, 18 Jan 2017 10:20:15 GMT 
      Content-Type: text/css 
      Content-Length: 123456 
      Connection: keep-alive 
      Last-Modified: Thu, 21 Nov 2013 00:43:25 GMT 
      Expires: Sat, 21 Mar 2017 18:20:15 GMT 
      Cache-Control: max-age=31104000 
      Vary: Accept-Encoding 
      x-amz-request-id: 123bc145-b1b2-13b6-bd52-5b6a56eb3c56 
      Access-Control-Allow-Origin: * 
      X-Cache: HIT 
      Accept-Ranges: bytes 

       

    • CURL Example After
      curl -I http://zone-company.stackpathdns.com/styles/file.css
      HTTP/1.1 200 OK 
      Date: Wed, 26 Mar 2014 18:20:43 GMT 
      Content-Type: text/css 
      Content-Length: 123456 
      Connection: keep-alive 
      Last-Modified: Thu, 21 Nov 2013 00:43:25 GMT 
      Expires: Sat, 21 Mar 2017 18:20:43 GMT 
      Cache-Control: max-age=31104000 
      Vary: Accept-Encoding 
      Access-Control-Allow-Origin: * 
      X-Cache: HIT 
      Accept-Ranges: bytes


 

Return to top