|
關(guān)注:1
2013-05-23 12:21
求翻譯:If the page changes for every request, then you certainly need to build the response at request time. If it changes only periodically, however, you could do it two ways: you could periodically build a new Web page on the server (independently of client requests), or you could wait and only build the page when the user 是什么意思?![]() ![]() If the page changes for every request, then you certainly need to build the response at request time. If it changes only periodically, however, you could do it two ways: you could periodically build a new Web page on the server (independently of client requests), or you could wait and only build the page when the user
問題補充: |
|
2013-05-23 12:21:38
如果為每個請求頁面的變化,那么你肯定需要建立在請求時的響應(yīng)。如果只有定期改變,但是,你能做到這一點有兩種方式:您可以定期在服務(wù)器上建立新的網(wǎng)頁(獨立的客戶端請求),或者你可以等待,只有建立頁面,當(dāng)用戶請求。正確的做法,視情況而定,但有時它更方便做了后者:等待用戶請求。例如,天氣報告或頭條新聞網(wǎng)站可能動態(tài)生成的網(wǎng)頁,也許回到以前建成的頁面,如果該網(wǎng)頁仍然是最新的。
|
|
2013-05-23 12:23:18
正在翻譯,請等待...
|
|
2013-05-23 12:24:58
|
|
2013-05-23 12:26:38
如果頁更改為每個請求,您當(dāng)然需要在請求時生成響應(yīng)。如果它僅定期更改,但是,你能辦到兩種方法: 定期可以建造新的 Web 頁 (客戶端請求),獨立的服務(wù)器上,也可以等待并只生成頁,當(dāng)用戶請求它。正確的方法取決于這種情況,但有時做后者更方便: 等待用戶的請求。例如,天氣報告或新聞頭條新聞?wù)军c可能會生成這些頁面動態(tài),也許返回以前生成的頁面
|
|
2013-05-23 12:28:18
|
湖北省互聯(lián)網(wǎng)違法和不良信息舉報平臺 | 網(wǎng)上有害信息舉報專區(qū) | 電信詐騙舉報專區(qū) | 涉歷史虛無主義有害信息舉報專區(qū) | 涉企侵權(quán)舉報專區(qū)