I'm getting a navigation timeout randomly (majorly if I refresh the page). I have a rails end point that returns a pdf generated by Grover (to_pdf). It works fine on first page load but if I refresh the page (it kinda gets unresponsive and results in a navigation timeout).
Also, if change some contents of the html.erb and refresh the page, i get navigation timeout.
Any idea about how to fix this?