File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -208,7 +208,7 @@ There's a set of unit tests included to ensure that your cache implementation is
208
208
209
209
### Stretch Goals
210
210
211
- #### Post a file:
211
+ #### 1. Post a file
212
212
213
213
1 . Implement ` find_start_of_body() ` to locate the start of the HTTP request body
214
214
(just after the header).
@@ -222,7 +222,7 @@ There's a set of unit tests included to ensure that your cache implementation is
222
222
The response from ` post_save() ` should be of type ` application/json ` and
223
223
should be ` {"status":"ok"} ` .
224
224
225
- #### Automatic ` index.html ` serving
225
+ #### 2. Automatic ` index.html ` serving
226
226
227
227
We know that if the user hits ` http://localhost:3490/index.html ` it should
228
228
return the file at ` ./serverroot/index.html ` .
@@ -245,7 +245,7 @@ fail to find a file there, then try:
245
245
246
246
and succeed.
247
247
248
- #### Expire cache entries
248
+ #### 3. Expire cache entries
249
249
250
250
It doesn't make sense to cache things forever--what if the file changes on disk?
251
251
@@ -255,7 +255,7 @@ If an item is found in the cache, check to see if it is more than 1 minute old.
255
255
256
256
You'll have to add a ` cache_delete ` function to your cache code that does the work of actually removing entries that are too old from the cache.
257
257
258
- #### Concurrency
258
+ #### 4. Concurrency
259
259
260
260
_ Difficulty: Pretty Dang Tough_
261
261
You can’t perform that action at this time.
0 commit comments