Skip to content

Commit

Permalink
chore: mjs file issue resolved
Browse files Browse the repository at this point in the history
  • Loading branch information
soumyadip007 authored Oct 14, 2024
1 parent 3fc7ded commit 129fb55
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,11 @@ Header set Cache-Control "max-age=3600, s-max-age=3600, public, no-cache"
# Ensure .mjs files are served with the correct MIME type
<IfModule mod_mime.c>
AddType application/javascript .mjs
AddType application/javascript .js
</IfModule>

# Set Content-Type header specifically for .js and .mjs files
# Set Content-Type header specifically for .mjs files
<IfModule mod_headers.c>
<FilesMatch "\.(js|mjs)$">
<FilesMatch "\.mjs$">
Header set Content-Type "application/javascript"
</FilesMatch>
</IfModule>
</IfModule>

0 comments on commit 129fb55

Please sign in to comment.