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 Is Data Obtained from a CDN PoP Not the Updated Data?
- Why Is 304 Returned When a User Accesses a Resource Under My Acceleration Domain Name?
- 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 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?
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.
more