“Re open last closed tab” causing to show last ajax request content

后端 未结 3 1866
清歌不尽
清歌不尽 2021-01-17 18:16

I am using HTML 5 history api to save state when ajax requests happen and i provide full html content if user request to same page with none ajax request.

\"Re-open

3条回答
  •  谎友^
    谎友^ (楼主)
    2021-01-17 18:31

    Problem was causing by http response headers. Headers was contain cacheable information for ajax requests so browser was showing that url content from cache without hit to database.

    After removing cache params from response headers then browser was able to hit server without brings content from cache.

提交回复
热议问题