From dc1261d703ae1e1a14841b030888e3f87ff7c38f Mon Sep 17 00:00:00 2001 From: Christian Cleberg Date: Wed, 1 May 2024 21:45:52 -0500 Subject: prettier formatting and rewrap lines --- content/blog/2022-02-20-nginx-caching.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'content/blog/2022-02-20-nginx-caching.md') diff --git a/content/blog/2022-02-20-nginx-caching.md b/content/blog/2022-02-20-nginx-caching.md index fc39b39..536df6b 100644 --- a/content/blog/2022-02-20-nginx-caching.md +++ b/content/blog/2022-02-20-nginx-caching.md @@ -17,7 +17,7 @@ to cache and determining the expiration length. To include more file types, simply use the bar separator (`|`) and type the new file extension you want to include. -``` config +```config server { ... @@ -35,9 +35,9 @@ changes (i.e., I'm never content with my website), I need to know that my readers are seeing the new content without waiting too long. So, I went ahead and set the expiration date at `30d`, which is short enough to -refresh for readers but long enough that clients/browsers won't be -re-requesting the static files too often, hopefully resulting in faster loading -times, as images should be the only thing slowing down my site. +refresh for readers but long enough that clients/browsers won't be re-requesting +the static files too often, hopefully resulting in faster loading times, as +images should be the only thing slowing down my site. # Testing Results @@ -48,7 +48,7 @@ recent image from my blog. In the image below, you can see that the `Cache-Control` header is now present and set to 2592000, which is 30 days represented in seconds (30 days \_ 24 -hours/day \_ 60 minutes/hour ** 60 seconds/minute = 2,592,000 seconds). +hours/day \_ 60 minutes/hour \*\* 60 seconds/minute = 2,592,000 seconds). The `Expires` field is now showing 22 March 2022, which is 30 days from the day of this post, 20 February 2022. -- cgit v1.2.3-70-g09d2