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.
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.
Chatbot