mirror of
https://github.com/maplibre/maplibre-rs.git
synced 2025-12-08 19:05:57 +00:00
Fix docs and add caching description.
This commit is contained in:
parent
df1855bb9d
commit
84c650f881
2
.gitignore
vendored
2
.gitignore
vendored
@ -16,5 +16,7 @@ target/
|
|||||||
|
|
||||||
dist/
|
dist/
|
||||||
|
|
||||||
|
# Cache by reqwest-middleware-cache
|
||||||
|
*cache*
|
||||||
|
|
||||||
logs/
|
logs/
|
||||||
|
|||||||
@ -3,11 +3,9 @@
|
|||||||
[Introduction](./introduction.md)
|
[Introduction](./introduction.md)
|
||||||
[Supported Platforms](./supported-platforms.md)
|
[Supported Platforms](./supported-platforms.md)
|
||||||
[Architecture](./architecture.md)
|
[Architecture](./architecture.md)
|
||||||
|
[Caching](./caching.md)
|
||||||
[Building](./building.md)
|
[Building](./building.md)
|
||||||
|
[Developer Log](./developer-log.md)
|
||||||
## Developer Log
|
|
||||||
|
|
||||||
I'm regularly releasing blog posts [on my blog](http://localhost:1313/categories/mapr/).
|
|
||||||
|
|
||||||
## Appendix
|
## Appendix
|
||||||
|
|
||||||
|
|||||||
12
docs/src/caching.md
Normal file
12
docs/src/caching.md
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
# Caching
|
||||||
|
|
||||||
|
The caching for mapr is handled on the networking layer. This means that data which is fetched over slow IO is cached in
|
||||||
|
the format of the network requests. The mapr library is not introducing a separate serialization format for caching.
|
||||||
|
|
||||||
|
Instead, caching functionality of HTTP client libraries of the web platform are used. This has the advantage that we can
|
||||||
|
honor HTTP headers which configure caching. This is very important for fetched tiles, as they can have an expiry date.
|
||||||
|
|
||||||
|
* On the web we are using service workers to cache network requests.
|
||||||
|
* On Linux, MacOs, iOS and Android we are
|
||||||
|
utilizing [reqwest-middleware-cache](https://crates.io/crates/reqwest-middleware-cache/), which writes raw network
|
||||||
|
requests to disk.
|
||||||
3
docs/src/developer-log.md
Normal file
3
docs/src/developer-log.md
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
# Developer Log
|
||||||
|
|
||||||
|
I'm regularly releasing blog posts [on my blog](https://maxammann.org/categories/mapr/).
|
||||||
Loading…
x
Reference in New Issue
Block a user