- Building RESTful Web services with Go
- Naren Yellavula
- 109字
- 2021-07-02 20:14:03
3xx family (redirection)
These status codes are used to convey redirection messages. The most important ones are 301 and 304:
- 301 is issued when a resource is moved permanently to a new URL endpoint. It is essential when an old API is deprecated. It returns the new endpoint in the response with the 301 status. By seeing that, the client should use the new URL in response to achieving its target.
- The 304 status code indicates that content is cached and no modification happened for the resource on the server. This helps in caching content at the client and only requests data when the cache is modified.
推薦閱讀
- 物聯(lián)網(wǎng)標準化指南
- 物聯(lián)網(wǎng)與北斗應(yīng)用
- Building E-commerce Sites with VirtueMart Cookbook
- 物聯(lián)網(wǎng)(IoT)基礎(chǔ):網(wǎng)絡(luò)技術(shù)+協(xié)議+用例
- SEO 20日
- JBoss EAP6 High Availability
- SD-WAN架構(gòu)與技術(shù)(第2版)
- 網(wǎng)絡(luò)安全技術(shù)與解決方案(修訂版)
- Bonita Open Solution 5.x Essentials
- 搶占下一個智能風口:移動物聯(lián)網(wǎng)
- 通信十年:擁抱互聯(lián)網(wǎng)
- 局域網(wǎng)組成實踐
- 圖解物聯(lián)網(wǎng)
- 一本書讀懂移動物聯(lián)網(wǎng)
- Migrating to Drupal7