Javascript Being Loaded Twice After Enabling Rewrite Through Tomcat Valve
I have a single page application, and I am using the tomcat rewrite valve to forward all the requests other than static resources to my index.html. Following are the contents of my
Solution 1:
I found out the issue using this answer: link The issue was that I was missing some of the file tags. My final rewrite rule looks like this:
RewriteCond %{REQUEST_URI} (?!.*\.(?:jpg|png|css|js|json|htm|scss|map|svg|html|favicon\.ico)$).*$
RewriteRule ^.*$ /index.html [L,QSA]
Post a Comment for "Javascript Being Loaded Twice After Enabling Rewrite Through Tomcat Valve"