Skip to content

Commit

Permalink
fix: mjs js issue resolved
Browse files Browse the repository at this point in the history
  • Loading branch information
soumyadip007 authored Oct 14, 2024
1 parent 229ca5a commit 3fc7ded
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,12 @@ 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 .mjs files
# Set Content-Type header specifically for .js and .mjs files
<IfModule mod_headers.c>
<FilesMatch "\.mjs$">
<FilesMatch "\.(js|mjs)$">
Header set Content-Type "application/javascript"
</FilesMatch>
</IfModule>
</IfModule>

0 comments on commit 3fc7ded

Please sign in to comment.