1
votes

Is there really anything wrong with using a CDN to serve static HTML files, like any webserver?

We are developing a CMS on Google App Engine and are tinkering with the idea of providing publishing to static html files. This is accomplished in minutes using the Google Cloud Storage Python API for Google App Engine.

But while the HTML file is delivered fine in other browsers, Chrome automatically downloads the HTML files locally and does not open then in a browser tab.

Any direction appreciated.

1

1 Answers

3
votes

No it's not wrong and most likely your Content-Type is wrong or the Content-Disposition.

When you're creating a file using the Cloud Storage API set the mime_type to 'text/html' and skip the content_disposition.