How to use caching in ASP.NET Web API?

Unfortunately, caching is not built into ASP.NET Web API. Check this out to get you on track: http://www.strathweb.com/2012/05/output-caching-in-asp-net-web-api/ An updated resource here: https://github.com/filipw/AspNetWebApi-OutputCache EDIT: As of 2020-02-03, even though this answer is quite old, it’s still valid. Both of the URL’s above lead to the same project, ASP.NET Web API CacheOutput by Filip W

Prevent IE11 caching GET call in Angular 2

For Angular 2 and newer, the easiest way to add no-cache headers by overriding RequestOptions: import { Injectable } from ‘@angular/core’; import { BaseRequestOptions, Headers } from ‘@angular/http’; @Injectable() export class CustomRequestOptions extends BaseRequestOptions { headers = new Headers({ ‘Cache-Control’: ‘no-cache’, ‘Pragma’: ‘no-cache’, ‘Expires’: ‘Sat, 01 Jan 2000 00:00:00 GMT’ }); } Module: @NgModule({ … … Read more