How to deploy a self contained .NET Core app.

by Mahmut Jomaa on June 27, 2016
Ok this blog post is rather a duplicate of the docs. However many people wrote me an e-mail because they simply didn't find it.   Docs:   1. Change the…

.NET Core 1.0 got released

in News
by Mahmut Jomaa on June 27, 2016
Today is the day. Microsoft announced something sweet at Red Hat DevNation. After a 3 year long journey .NET Core 1.0 got released:     1. Get the Visual…

Microsoft aquired Xamarin

in News
by Mahmut Jomaa on February 25, 2016
Microsoft announced today that they aquired Xamarin. This is HUGE!   About Xamarin Xamarin is a provider for mobile app development technology. You can write a C# application and cross-compile…

Building a simple Brainfuck Interpreter in C

in C/C++
by Mahmut Jomaa on December 08, 2015
Brainfuck is a Turing-complete language that isn't necessary designed for productive usage :) However it is actually great to understand C pointers. An Interpreter is a computer program that directly…

How to enable precompiled razor views (.cshtml) in ASP.NET 5

by Mahmut Jomaa on November 29, 2015
If you want your .cshtml to be precompiled before the first request hits, you need to enable it manually. This increases time needed for compilation, however the compilation process still…

Upgrading your ASP.NET 5 application from beta8 to RC1

by Mahmut Jomaa on November 23, 2015
There aren't that many API changes, the focus on RC1 was to stabilize the code base.   Installation of RC1: 1. First download and install the RC1 upgrade for Visual…

in Projects
by Mahmut Jomaa on November 09, 2015
Today I'm releasing a new online tool: In short: You can store text online or use it as your syntax highlghter (for your blog).   Features: Paste and share…

Output / Response Caching in ASP.NET 5

Output Caching works quite similiar in ASP.NET 5 to previous versions.




This will add the Cache-control header with max-age=120. (seconds)

You can define profiles and use them instead of repeating.






If you want configure more:


The ResponseCacheAttribute got the following properties:


Duration: Gets or sets the duration in seconds for which the response is cached.

Location: Gets or sets the location where the data from a particular URL must be cached.

NoStore: Gets or sets the value which determines whether the data should be stored or not. If true the Cache-control header will be set to no-store.

VaryByHeader: Gets or sets the value for the Vary response header.

CacheProfileName: Gets or sets the value of the cache profile name.

Order: Gets or sets the order of the filter.



Mahmut Jomaa is a Software Engineer from Germany.

Currently he attends university to gain more knowledge in Computer Science.

0 # Mr 2016-04-26 10:48 – Muqeem
it is not working for me
Reply | Reply with quote | Quote
Security code Refresh


Because insights are awesome!