rendertron icon indicating copy to clipboard operation
rendertron copied to clipboard

Mobile query param not toggling, seems to be sticky

Open jlafosse opened this issue 4 years ago • 1 comments

The mobile query param seems to be sticky somehow. For example, if I start up a new instance of rendertron without any caching enabled and pass the ?mobile onto the end of the url, the target page will render as mobile correctly. However if I then remove the ?mobile and refresh the page it is still mobile. In fact if I hit any other url they will all be rendered as mobile. If I stop the server and restart and then hit the pages without ?mobile they will show as desktop, however now the opposite occurs in that if you add ?mobile onto the urls they still will not render as mobile until the server is restarted.

I am using rendertron v3.1.0 and here is my config:

{
    "puppeteerArgs":[
        "--disable-web-security",
        "--no-sandbox",
        "--disable-setuid-sandbox"
    ],
    "port":"3000",
}

Any help would be appreciated... thanks.

jlafosse avatar May 24 '21 21:05 jlafosse

Ok so apparently if I add closeBrowser:true to my config it solves the issue... although I am unsure if this is expected behavior.

jlafosse avatar May 24 '21 23:05 jlafosse

In general, as we're deprecating the project, you should look into alternative approaches to rendering on the web.

AVGP avatar Oct 06 '22 07:10 AVGP