Blog

Showing 13–24 of 49 articles

APIs2 min read

Cursor vs offset pagination, part 8

In part 8 we take the ideas from earlier instalments and apply them to a larger, messier site. Offset pagination asks for 'items 40 to 60'. Cursor pagination asks for 'the next page after this…

APIs2 min read

Rate limit headers explained, part 8

In part 8 we take the ideas from earlier instalments and apply them to a larger, messier site. A well-behaved API tells you how many requests you have left before it starts saying no. Reading those…

Testing2 min read

Working with CSRF tokens, part 6

Part 6 looks at what changes when the same technique has to run every day in production. Cross-site request forgery tokens are one of the first things that trip up a script trying to log in to a…

Testing2 min read

Working with CSRF tokens

Cross-site request forgery tokens are one of the first things that trip up a script trying to log in to a site: the form posts fine in a browser but fails with a 403 from code.