Skip to content

Commit

Permalink
Update output-caching.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Tratcher authored Nov 20, 2023
1 parent 185d869 commit a8a746d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/docfx/articles/output-caching.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,14 @@ builder.Services.AddOutputCache(options =>
});
```

In Program.cs add the output caching middleware.
Then add the output caching middleware:

```c#
var app = builder.Build();

app.UseOutputCache();

app.MapReverseProxy();
```

See the [Output Caching](https://learn.microsoft.com/aspnet/core/performance/caching/output) docs for setting up your preferred kind of output caching.

0 comments on commit a8a746d

Please sign in to comment.