Skip to content

Commit 462b3b4

Browse files
committed
Simplified the explanation of caching.
1 parent f0880a2 commit 462b3b4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

site/jekyll/getting-started/tutorial.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -409,9 +409,9 @@ public ActionResult Comments()
409409
}
410410
```
411411

412-
The `OutputCache` attribute is used here to prevent IE from caching the ajax request. IE tries to optimize things by assuming that identical requests will return identical responses. Subsequent calls to the Comments action will simply return the cached response from the first call, the result being that the comment list is never updated in IE as new comments are added. When designing a real world API, cache times of API requests should be considered more carefully. For this tutorial it is easiest to simply disable caching.
412+
The OutputCache attribute is used here to prevent browsers from caching the response. When designing a real world API, caching of API requests should be considered more carefully. For this tutorial it is easiest to simply disable caching.
413413

414-
Finally we add a corresponding route in `App_Start\RouteConfig.cs` to simplify the request URL a bit:
414+
Finally we add a corresponding route in `App_Start\RouteConfig.cs`:
415415

416416
```csharp{12-16}
417417
using System.Web.Mvc;

0 commit comments

Comments
 (0)