Skip to content

Commit c9d31f8

Browse files
committed
fsthttp: add new caching infrastructure
1 parent 180b7bc commit c9d31f8

File tree

13 files changed

+2849
-159
lines changed

13 files changed

+2849
-159
lines changed

Diff for: CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
### Added
44

5+
- fsthttp: add http cache API support
56
- secretstore: add Plaintext toplevel convenience function
67
- acl: add ACL hostcalls
78

Diff for: README.md

+9
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,15 @@ Logging can be done using a Fastly Compute Log Endpoint ([example](./_examples/l
7474
fmt.Printf("request received: %s\n", r.URL.String())
7575
```
7676

77+
## Readthrough HTTP Cache Support
78+
79+
Customizing cache behaviour with the readthrough cache is an opt-in feature; enable it by adding `-tags=fsthttp_guest_cache` to the build line of your `fastly.toml`.
80+
81+
```
82+
[scripts]
83+
build = "tinygo build -target=wasip1 -tags=fsthttp_guest_cache -o bin/main.wasm ."
84+
```
85+
7786
## TinyGo Recommended Packages
7887

7988
TinyGo is still a new project, which has yet to get a version `1.0.0`. Therefore, the project is incomplete, but in its current state can still handle a lot of tasks on Compute. However, [some languages features of Go are still missing](https://tinygo.org/docs/reference/lang-support/).

0 commit comments

Comments
 (0)