Double console output?

前端 未结 6 1495
深忆病人
深忆病人 2021-02-08 04:28

Suddenly when I run my app locally, I get double console output. Does anybody know what might have caused this? The problem exists both when running Thin and Unicorn

<         


        
6条回答
  •  清酒与你
    2021-02-08 04:50

    From your example, it shows that duplicates are happening inline, ie.

    A
    A
    B
    B
    C
    C
    

    If instead you are seeing what appears to be two back-to-back duplicate requests, ie:

    A
    B
    C
    
    A
    B
    C
    

    You should strongly consider @aelor's answer of hunting down a or a similar self-referential url tag. I spent hours trying to figure out why my application was appearing to make two duplicate requests, and after reading @aelor's answer I found

    %link{href: "", rel: "shortcut icon"}/
    

    in my code! It was causing every page of my production app to be double rendering!!!! So bad for performance and so annoying!

提交回复
热议问题