- redis
docker run -p 3000:3000 zkchn/critical-css-crawler
Docker-compose and k8s configrations can be found in this repo.
GET /healthz
- liveness probePOST / body: {"url": "https://example.com", "headers": {"user-agent": "iPhone"}, "version": "1.0.0", "key": "/someurl"}
-key
is optional, default value isurl
Main entry point. It responses 404 when there are no critical css in a cache, and 200 with critical css in a body. After the first request of page service starts preparing critical css. It takes about 7 seconds and then service starts serving styles.
TODO