Why Is 304 Returned When a User Accesses a Resource Under My Acceleration Domain Name?
Status code 304 indicates that the resource has not changed since the last time CDN cached it.
When a client requests the resource for the first time, CDN returns the resource in a 200 response to the client. The response includes ETag that marks the time when the resource was last modified. When the client requests the resource again, if the ETag value is not modified, 304 is returned and the client loads the cached content. If the ETag value differs, the modification time is marked and CDN returns the new resource to the client. Details are as follows:
- When a client accesses 1.jpg for the first time, CDN returns the image in a 200 response to the client. Response headers include Last-Modified (last modification time) and ETag.
- When the client accesses 1.jpg again, the request headers carry the Last-Modified and ETag values. If the two values differ, CDN returns the latest image in a 200 response to the client. If not modified, the client loads the cached content.
- The user can press Ctrl+F5 to clear the client cache. When the user accesses the resource again, status code 200 will be returned.
Troubleshooting FAQs
- Why Am I Seeing a Message Indicating that the Domain Name Already Exists When I Add a Domain Name for CDN Acceleration?
- Why Is My Domain Name Inaccessible After HTTPS Secure Acceleration Is Configured?
- Why Am I Seeing a Message Indicating Insufficient Permission When I Call a CDN API as an IAM User?
- Why Is Data Obtained from a CDN PoP Not the Updated Data?
- What Do I Do If the Browser Displays a Message Indicating that a Cross-domain Exception Occurs After CDN Is Enabled?
- Why Is 304 Returned When a User Accesses a Resource Under My Acceleration Domain Name?
- Why Does Agency Creation for OBS Fail When an OBS Private Bucket Is Used as the Origin Server?
- Why Is the Accelerated Page Incorrect Even Though I Can Access the Origin Server?
- Why Can't a Web Page Be Properly Displayed After the Origin Server's IP Address Is Changed?
- Why Do I Get an Access Failure and Access-Control-Allow-Origin Error?
- Why Does Baidu Spider Fail to Capture Data?
- Why Are All Files in the Bucket Displayed When Users Request a File from an OBS Bucket Connected to CDN?
- Why Does the Video Freeze After CDN Is Configured?
- Why Is My CDN Disabled?
- Why Does the System Always Display "301" After HTTPS Is Configured for a Domain Name?
- Why Do I Get Request Timed Out When Trying to Ping an Acceleration Domain Name?
- Why Are Incorrect Resources Being Pulled from My Origin Server?
- Why Is My Site Slow the First Time I Access It After CDN Is Configured?
- Why Is My Acceleration Domain Name Inaccessible Outside the Chinese Mainland?
- Why Is a File in an OBS Bucket with CDN Acceleration Enabled Be Automatically Downloaded When I Access the File?
- How Do I Do If a Domain Name Fails to Be Added?
- Why Is the Button for Adding a Domain Name Unavailable on the CDN Console?
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbotmore