April 21, 2020
Estimated Post Reading Time ~

How to check whether content is getting served from CDN cache or CDN edge server

Statement - How to check whether the content is getting served from CDN cache or CDN edge server

Solution:
  1. Content-Encoding: gzip This indicates Gzip enabled for the website.
  2. X-Cache: Hit from CloudFront - This indicates when requests are served from the closest CloudFront/CDN edge location.
  3. X-Cache: Miss from CloudFront" when the request is sent to the origin and "Miss" requests might be slower to load because of the additional step of forwarding to the origin.
  4. X-Frame-Options: SAMEORIGIN - provide clickjacking protection by not allowing rendering of a page in a frame. This can include a rendering of a page in a frame, iframe, or object The SAMEORIGIN directive allows the page to be loaded in a frame on the same origin as the page itself.
Domain Name
https://www.abc.com/

Compressed size
5662

Uncompressed size
31897

Was saved by compressing this page with GZIP. 82.25

Header Information

HTTP/1.1 200 OK

Content-Type: text/html; charset=UTF-8

Content-Length: 5662

Connection: keep-alive

Date: Fri, 07 Dec 2017 10:51:12 GMT

Server: Apache

X-Frame-Options: SAMEORIGIN

Cache-Control: public, max-age=0, s-maxage=86400

Accept-Ranges: bytes

Content-Encoding: gzip

x-platform: cf5-3

Vary: Accept-Encoding

Age: 89

X-Cache: Hit from CloudFront

Via: 1.1 68e4011ca1c00bec92bb202e1ddce131.cloudfront.net (CloudFront)

X-Amz-Cf-Id: -fKsscKYxW5jusS5LZ-f3sqIHIG34RJXydvw-JlXczZkF3168snvjQ==


By aem4beginner

No comments:

Post a Comment

If you have any doubts or questions, please let us know.