Closed orinokai closed 1 month ago
File | Before (Size / Gzip) | After (Size / Gzip) |
---|---|---|
dist/run/handlers/server.js |
141.1 kB / 33.0 kB |
-0.01%↓141.1 kB / 0.01%↑33.0 kB |
dist/run/headers.js |
7.3 kB / 2.2 kB |
3%↑7.5 kB / 2%↑2.3 kB |
Total (Includes all files) | 5.3 MB / 959.2 kB |
0%↑5.3 MB / 0.01%↑959.3 kB |
Tarball size | 912.2 kB |
0.01%↑912.2 kB |
🤖 This report was automatically generated by pkg-size-action
Description
There are a number of routes ending in
.php
that are commonly probed by bots looking for security vulnerabilities. This PR ensures that the Runtime caches any 404 response resulting from a request to a URL ending in.php
.It is designed to help stop excessive function invocations and is a interim solution until we are able to constrain the paths that the SSR function runs on (waiting for regex support).
Tests
Integration tests added
Relevant links (GitHub issues, etc.) or a picture of cute animal
Partial solution for FRB-1344