Skip to content

Commit

Permalink
Fixed MIME type for public/cards.min.js part deux
Browse files Browse the repository at this point in the history
refs: 580ebfa

- correct mime type is application/javascript
- mime types are weird
  • Loading branch information
ErisDS committed Dec 2, 2021
1 parent 580ebfa commit ecbdb22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/frontend/web/site.js
Expand Up @@ -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));

This comment has been minimized.

Copy link
@touzoku

touzoku Dec 7, 2021

Contributor

it should be text/javascript


// Serve blog images using the storage adapter
siteApp.use(STATIC_IMAGE_URL_PREFIX, mw.handleImageSizes, storage.getStorage('images').serve());
Expand Down

0 comments on commit ecbdb22

Please sign in to comment.