1. 程式人生 > >Cache:Miss from CloudFront Error

Cache:Miss from CloudFront Error

To diagnose and troubleshoot the cause of the "X-Cache:Miss from CloudFront" response, check the following:

Which edge location is receiving the requests?

After an object is requested through Amazon CloudFront, the object is cached only in the edge location that received the request. If a subsequent request is made to another edge location, the other edge location won't have a cached version of the object, and so it returns an "X-Cache:Miss from CloudFront" response.

To determine if the response is coming from one edge location or from multiple edge locations, send several requests from the same client to the same object. Then, check the IP addresses that the connection is established on. Run a reverse DNS lookup on the IP addresses to determine which edge location the requests are going to.

How frequently is the object requested?

If an object in an edge location isn't requested frequently, CloudFront might remove the object before its expiration date. For more information on when CloudFront evicts objects, see Specifying How Long Objects Stay in a CloudFront Edge Cache (Expiration)

.

If you're seeing the "X-Cache:Miss from CloudFront" response intermittently, CloudFront might be removing the object because of infrequent requests.

Is the CloudFront distribution configured to forward any headers, cookies, or query string parameters?

If your distribution is configured to forward headers, cookies, or query string parameters, the distribution caches requests based on those parameters. The parameters reduce the number of requests served from the cache.

For example, if two requests to access an object have different values in query string parameters, the second request won't be served from the cache. The second request returns the "X-Cache:Miss from CloudFront" response.

To determine if forwarding headers, cookies, or query string parameters are causing the response, configure the CloudFront distribution to not forward these parameters to the origin. Then, check to see if the issue persists.

If the issue resolves after the distribution no longer forwards those parameters, then at least one parameter is causing the response. Consider whitelisting only the specific parameters you want CloudFront to forward to the origin, rather than configuring CloudFront to forward a wide range of parameters.

Is the response stored in the browser cache?

After a request results in the "X-Cache:Miss from CloudFront" response, the browser might be serving the same response to subsequent requests because it's stored in the browser cache.

To verify if the response is stored in the browser cache, clear the browser cache and make a new request for the same object.

Note: To determine how long the browser caches the object, check to see if any Cache-Control or Expires headers are set on the object.

相關推薦

Cache:Miss from CloudFront Error

To diagnose and troubleshoot the cause of the "X-Cache:Miss from CloudFront" response, check the following: Which edge location is r

from disk cachefrom memory cache

用戶訪問 但是 沒有 info expire 讀取 CA 請求 文件 webkit資源的分類webkit的資源分類主要分為兩大類:主資源和派生資http狀態碼200 from memory cache不訪問服務器,直接讀緩存,從內存中讀取緩存。此時的數據時緩存到內存中的,當

Mysql報錯message from server: ERROR 1062 (23000):

tor bsp rim ble user slow_log dup slow topic Mysql連接報錯:java.sql.SQLException:null,message from server:"Host '27,45,38,132' i

安卓:Could not read cache value from'C:\Users\Username\.gradle\daemon\1.12\registry.bin'

android studio在載入專案的時候報錯: Error:Could not read cache value from'C:\Users\Username\.gradle\daemon\1.12\registry.bin' 參考stack overflow上的一個解決方法,刪除

python--Undefined variable from import error

新學Python,從網上下載了一些 示例程式碼放到eclipse裡執行一下,直接執行沒問題,但是一開啟編輯,有些就會報錯: Undefined variable from import: * * * * * 著實令人苦惱! 網上搜了一下,找到了有用的解決辦法,具體如下! Wind

瀏覽器快取 from memory cachefrom disk cache詳解

在chrome瀏覽器中的控制檯Network中size欄通常會有三種狀態 1.from memory cache 2.from disk cache 3.資源本身的大小(如:1.5k) 那麼問題來了 1.三種區別在哪裡;2.瀏覽器採取不同措施的原則是什麼;3.其他瀏覽器的策略 下

from memory cachefrom disk cache詳解

在chrome瀏覽器中的控制檯Network中size欄通常會有三種狀態 1.from memory cache 2.from disk cache 3.資源本身的大小(如:1.5k) 那麼問題來了 1.三種區別在哪裡;2.瀏覽器採取不同措施的原則是什麼;3.其他瀏

from memory cachefrom disk cache一些問題

這個問題源於今天無意中開啟開發者工具的network發現瀏覽器在讀取快取時還有這兩種不同的方法,所以看了一些資料,自己寫一一篇總結一下。 發現雖然都是快取中去檔案但還是有一些區別的。 webkit資源的分類: webkit的資源分類主要分為兩大類:主資源和派生資源。

Resolve CloudFront Error "Request Blocked"

Amazon Web Services is Hiring. Amazon Web Services (AWS) is a dynamic, growing business unit within Amazon.com. We are currently hiring So

Resolve Cloudfront Error "CNAMEAlreadyExists"

CNAMEAlreadyExists: One or more of the CNAMEs you provided are already associated with a different distribution at DNS level If t

Resolve HTTP 504 Errors from CloudFront

Amazon Web Services is Hiring. Amazon Web Services (AWS) is a dynamic, growing business unit within Amazon.com. We are currently hiring So

Error response from daemon: Error response from daemon: plugin not found

代理伺服器對應的服務沒有啟動,這個提示雖然是有錯誤,但是在代理伺服器還是會創建出相應的錯誤容器。 # /etc/init.d/openvswitch start # systemctl start daoliplugin.service 如果提示: Error re

Resolve HTTP 403 Access Denied Error From an S3 Website Endpoint Origin in Amazon CloudFront

{ "Version": "2008-10-17", "Id": "PolicyForCloudFrontPrivateContent", "Statement": [ { "Sid": "Allow-OAI-Access-

Resolve HTTP 403 Access Denied Error From an S3 REST API Endpoint Origin in Amazon CloudFront

{ "Version": "2008-10-17", "Id": "PolicyForCloudFrontPrivateContent", "Statement": [ { "Sid": "Allow-OAI-Access-

ArcGIS “Error HRESULT E_FAIL has been returned from a call to a COM component.” 異常的解決

exce run sys 簡單 mpc mco pre amp back 錯誤提示內容: {System.Runtime.InteropServices.COMException (0x80004005): Error HRESULT E_FAIL has been re

malloc: *** error for object 0x6080000bd200: Invalid pointer dequeued from free list *** set a breakpoint in malloc_error_break to debug

版本 解決 pointer 系統 解決方法 all list object ued 在集成第三方sdk的時候碰到這個問題, malloc: *** error for object 0x6080000bd200: Invalid pointer dequeued from

Error code:1728 Cannot load from mysql.proc. The table is probably corrupted

modify pos dsm enc from default php bug cor Error code:1728 Cannot load from mysql.proc. The table is probably corrupted http://bugs.m

hive報錯 Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. MetaException(message:For direct MetaStore DB connections,

pre mysq rom ges character base ddltask for latin 學習hive 使用mysql作為元數據 hive創建數據庫和切換數據庫都是可以的 但是創建表就是出問題 百度之後發現 是編碼問題 特別記錄一下~~~ 1.報錯前如圖:

Android ADT error, dx.jar was not loaded from the SDK folder

none folder all cep erro orm android-s 5.0 tar I was running Eclipse Neon.2 and the Android SDK Build-tools + platform-tools version 26 o

【故障處理】ERROR 1872 (HY000): Slave failed to initialize relay log info structure from the repository

options 配置信息 解決 fail 可用 soc none fma 刪除 今天在使用冷備份文件重做從庫時遇到一個報錯,值得研究一下。 版本:MySQL5.6.27  一、報錯現象 dba:(none)> start slave; ERROR 1872 (H