0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00

Fixed MIME type for public/cards.min.js part deux

refs: 580ebfad39

- correct mime type is application/javascript
- mime types are weird
This commit is contained in:
Hannah Wolfe 2021-12-02 09:03:06 +00:00
parent 580ebfad39
commit ecbdb2284e
No known key found for this signature in database
GPG key ID: AB586C3B5AE5C037

View file

@ -112,7 +112,7 @@ module.exports = function setupSiteApp(options = {}) {
// Card assets
siteApp.use(mw.servePublicFile('built', 'public/cards.min.css', 'text/css', constants.ONE_YEAR_S));
siteApp.use(mw.servePublicFile('built', 'public/cards.min.js', 'text/javascript', constants.ONE_YEAR_S));
siteApp.use(mw.servePublicFile('built', 'public/cards.min.js', 'application/javascript', constants.ONE_YEAR_S));
// Serve blog images using the storage adapter
siteApp.use(STATIC_IMAGE_URL_PREFIX, mw.handleImageSizes, storage.getStorage('images').serve());