Skip to content

Commit

Permalink
chore : location changed
Browse files Browse the repository at this point in the history
  • Loading branch information
soumyadip007 authored Oct 14, 2024
1 parent d5755dc commit 229ca5a
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions .htaccess
Original file line number Diff line number Diff line change
@@ -1,15 +1,3 @@
# 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 @@ -52,4 +40,16 @@ 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>

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

0 comments on commit 229ca5a

Please sign in to comment.