(self, method: str, url: str,
headers: dict | None, body: bytes)
| 334 | return host_matches_rules(host, self._bypass_hosts) |
| 335 | |
| 336 | def _cache_allowed(self, method: str, url: str, |
| 337 | headers: dict | None, body: bytes) -> bool: |
| 338 | if method.upper() != "GET" or body: |
| 339 | return False |
| 340 | for name in UNCACHEABLE_HEADER_NAMES: |
| 341 | if header_value(headers, name): |
| 342 | return False |
| 343 | return self.fronter._is_static_asset_url(url) |
| 344 | |
| 345 | async def start(self): |
| 346 | if self._warmup_before_listen: |
no test coverage detected