Ajax + pushState bug in Chrome

后端 未结 1 1757
醉酒成梦
醉酒成梦 2021-01-02 16:12

I\'ve encountered a strange bug in Chrome 19. I implemented a full-AJAX website (every non-external link is opened via AJAX request) with pushState support. I transmit the H

相关标签:
1条回答
  • 2021-01-02 16:29

    I came with a workaround - I perform AJAX request with additional dummy GET parameter - ?ajax=1. This way the browser can recognize the difference between usual HTML content and JSON. It doesn't have any impact on the user, the parameter is visible only in Firebug.

    0 讨论(0)
提交回复
热议问题