public async Task <JsonResult> OnGetLoadVideos() { var videos = await _db.GetVideos(); this.HttpContext.Response.Headers[HeaderNames.CacheControl] = "public,max-age=" + (60 * 60 * 4); //four hours return(new JsonResult(videos)); }
public async Task <JsonResult> OnGetLoadVideos() { var videos = await _db.GetVideos(); return(new JsonResult(videos)); }