This repository has been archived by the owner on Jan 9, 2023. It is now read-only.
- Add content length limit for creating new pastes.
- 64MB should be enough for most purposes.
- The script for Shrek is 52kB of plain text, so you could fit over 1000 Shrek scripts in a single file and save it to a paste instance.
- Why would you ever want to do that?
- Fix authorization header format being invalid.
- The authorization header content is
Bearer <token>
, as per the spec.
- The authorization header content is
- Add cache-control header.
- Pastes can be cached for 1 day from last request.
- Traffic is likely to be bursty, rather than consistent, so I think this is a good compromise between not hammering the server and keeping fresh content in case I ever add a way to edit pastes.