Click here to Skip to main content
15,887,027 members
Articles / Web Development / ASP.NET / ASP.NET Core

Cache headers for MVC File Action Result (ASP.NET Core 2.0 Preview 2)

Rate me:
Please Sign up or sign in to vote.
5.00/5 (5 votes)
20 Jul 2017CPOL5 min read 17.7K  
This article shows you how to configure the ASP.NET Core 2.0 MVC File action result to write file to response with cache headers.

Views

Daily Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Architect Geek Hour
Bangladesh Bangladesh
Tech Enthusiast | Contributing Author on Microsoft Docs | Github Country Leader (C# and Typescript)

A .NET and JavaScript enthusiast. Likes to work with different technologies on different platforms. Loves the logic and structure of coding and always strives to write more elegant and efficient code. Passionate about design patterns and applying Software Engineering best practices.

I'm a young coder who did exceedingly well in my education and was offered an internship by Microsoft. I've tried a range of things and realized that what I need is a super creative challenge. I'm hungry for a real role in a challenging startup, something I can stick with for years

Comments and Discussions