Summary
Static files served via Tomcat are inefficient. As a result, users experience a delay in loading pages that retrieve these files.
Environment
Jira Server regardless private or public facing
Steps to Reproduce
- In Chrome, run the Developer Tools and select the Network tab
- Access Jira via an invalid link. For example: <baseURL>/random
- Monitor the time taken to load the 404 page
Expected Results
Error 404 Page Not Found should be returned immediately
Actual Results
It takes about 20s+ to load the page and most of it are spent on retrieving /static-assets/metal-all.css and /static-assets/metal-all.js
Notes
This behaviour does not affect Jira integrated with Nginx
This was originally raised in Jira tinkerers beware: Tomcat does not serve raw files correctly, causing browser hangs