How can I detect and survive being “Slashdotted”?

前端 未结 24 1833
半阙折子戏
半阙折子戏 2021-01-29 21:19

What\'s a good way to survive abnormally high traffic spikes?

My thought is that at some trigger, my website should temporarily switch into a \"low bandwidth\" mode: swi

24条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-29 21:45

    Make sure your pages support Last-Modified & If-Modified-Since and/or ETag & If-None-Match headers. With these you can avoid many computations and transfers totally.

    Search for HTTP conditional GET for more information.

提交回复
热议问题