Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (url ~ foo) {
- cache for x seconds;
- }
- if (url ~ bar) {
- cache for y seconds;
- }
- if (referer != example.com) {
- if (req.url ~ xyz || req.url ~ foobar) {
- set ttl = 1min, set grace = 2h
- }
- }
- dont cache anything that didn't match the rules above
Add Comment
Please, Sign In to add comment