With CDN Acceleration Enabled, Why Are the Objects in My OBS Bucket Directly Downloaded When I Access Them?
Symptom
After CDN acceleration is enabled for a user-defined domain name on OBS Console or after the origin server address for an acceleration domain name added through the CDN console is set to an OBS bucket domain name, the objects stored in OBS cannot be previewed online and are instead downloaded directly when accessed.
Solutions
You can use the following two methods to fix this issue:
Method 1
Log in to the CDN console and go to the Domains page. On the Domains page, click the target domain name and then the Advanced Settings tab. Add the Content-Disposition response header and set its value to inline.

If the .html static website file is still downloaded after you complete the preceding steps, clear your local browser cache.
Method 2
Log in to the CDN console and go to the Domains page. On the Origin Settings page of the target domain name, edit or add the origin server configuration. Set the origin server type to the OBS bucket domain name and the host header to the user-defined domain name bound to OBS.
In this method, the origin server's domain name is used to access CDN. Generated retrieval traffic will be billed as the outbound Internet traffic and cannot be covered by pull traffic packages offered by OBS.
If the issue persists after the preceding configuration is complete, refresh the cache on the CDN console. For details, see Cache Refreshing.
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