Skip to content

Commit 4b08f2c

Browse files
author
Phil Sturgeon
committed
Updates to caching talk
1 parent 4adc310 commit 4b08f2c

File tree

1 file changed

+7
-11
lines changed
  • content/http-caching-to-save-the-polar-bears

1 file changed

+7
-11
lines changed

content/http-caching-to-save-the-polar-bears/source.md

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,13 @@ theme: sky
77

88
### Stop Melting The Ice Caps
99

10-
PHP South West
10+
APIs You Won't Hate
1111

1212
<small>@philsturgeon</small>
1313

1414
---
1515

16-
Who leads? Client or Server?
17-
18-
---
19-
20-
Caching is for the client (consumer)
16+
Caching is not about performance. But...
2117

2218
---
2319

@@ -31,7 +27,7 @@ Note: Each interaction must be the quickest possible
3127

3228
---
3329

34-
REST optimizes for _network efficiency_ over _network speed_
30+
HTTP Caching helps optimizes for _network efficiency_
3531

3632
---
3733

@@ -113,7 +109,7 @@ GraphQL and endpoint-APIs which fail to offer cacheability all force "naive clie
113109
## Expiry Guessing
114110
### Problem 1
115111

116-
12 hours is an **arbitrary number** plucked out my...
112+
12 hours is an **arbitrary number** I plucked out my...
117113

118114
brain 🤔
119115

@@ -138,7 +134,7 @@ Client must subscribe to AMQP, WebSockets, etc. to invalidate
138134

139135
---
140136

141-
REST says these problems should be a concern of the **server**
137+
REST says these problems should be a concern of the **server** not the **client**
142138

143139
---
144140

@@ -203,7 +199,7 @@ HTTP/1.1 304 Not Modified
203199

204200
---
205201

206-
Not Modified means "Use the response you already have"
202+
Not Modified tells the client to use the response they already have
207203

208204
---
209205

@@ -214,7 +210,7 @@ Server doesn't need to serialize JSON
214210
``` ruby
215211
class TurtlesController < BaseController
216212
def show
217-
turtle = ...
213+
turtle = Turtle.find(params[:id])
218214

219215
expires_in(15.minutes, public: true)
220216
if stale?(turtle)

0 commit comments

Comments
 (0)