Current behaviour (checked on OCP/ODF 4.15):Request URL:https:<OCP_BASE_URL>/api/plugins/odf-console/packages_shared_src_utils_index_ts-webpack_sharing_consume_default_react-webpack_sharing_cons-e82239-chunk.js
application/javascript is considered to be a legacy JavaScript MIME type but is still a valid one for now. Proper MIME type for JavaScript according to current HTML spec is text/javascript.
Current behaviour (checked on OCP/ODF 4.15): Request URL:
https:<OCP_BASE_URL>/api/plugins/odf-console/packages_shared_src_utils_index_ts-webpack_sharing_consume_default_react-webpack_sharing_cons-e82239-chunk.js
Response headers:
application/javascript
is considered to be a legacy JavaScript MIME type but is still a valid one for now. Proper MIME type for JavaScript according to current HTML spec istext/javascript
.Refer: https://github.com/openshift/console/pull/13637#discussion_r1504460085 for more details.