Skip to content

Commit

Permalink
chore: changes in mjs
Browse files Browse the repository at this point in the history
  • Loading branch information
soumyadip007 authored Oct 14, 2024
1 parent 9af9d90 commit d5755dc
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions .htaccess
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
# Ensure .mjs files are served with the correct MIME type
<IfModule mod_mime.c>
AddType application/javascript .mjs
</IfModule>

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

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
Expand Down Expand Up @@ -40,9 +52,4 @@ Header set Cache-Control "max-age=3600, s-max-age=3600, public, no-cache"
<IfModule mod_deflate.c>
# Compress HTML, CSS, JavaScript
AddOutputFilterByType DEFLATE text/html text/css application/x-javascript application/javascript
</IfModule>

# Ensure .mjs files are served with the correct MIME type
<IfModule mod_mime.c>
AddType application/javascript .mjs
</IfModule>
</IfModule>

0 comments on commit d5755dc

Please sign in to comment.