Skip to content

Commit 67539a6

Browse files
authored
Merge pull request #153 from fastly/dgryski/http-cache
Add new caching infrastructure
2 parents 05b9383 + 2119993 commit 67539a6

File tree

12 files changed

+3972
-74
lines changed

12 files changed

+3972
-74
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
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

README.md

Lines changed: 9 additions & 0 deletions
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)