浏览代码

Added note on the http cache

Björn Ritzl 5 年之前
父节点
当前提交
238c748f5a
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      docs/en/manuals/networking.md

+ 3 - 0
docs/en/manuals/networking.md

@@ -26,6 +26,9 @@ http.request("https://www.defold.com", "GET", handle_response)
 
 This will make an HTTP GET request to https://www.defold.com. The function is asynchronous and will not block while making the request. Once the request has been made and a server has sent a response it will invoke/call the provided callback function. The callback function will receive the full server response, including status code and response headers. It is also possible to make HTTP POST requests to pass data to the server and to specify request headers. Refer to the [API reference](/ref/http/) to learn more.
 
+::: sidenote
+HTTP requests are automatically cached in the client to improve network performance. The cached files are stored in an OS specific application support path in a folder named `defold/http-cache`. You usually don't have to care about the HTTP cache but if you need to clear the cache during development you can manually delete the folder containing the cached files. On macOS this folder is located in `%HOME%/Library/Application Support/Defold/http-cache/` and on Windows in `%APP_DATA%/defold/http-cache`.
+:::
 
 ## Socket connections