Questions tagged [responsecache]
28 questions
1
vote
1 answer
Timer for applying settings WSO2 API-manager doesn't work
I have used the WSO2 API manager in my company. When I change the settings of the available methods (scopes) or the available authorisation methods (application level security), the application of these settings takes up to 15 minutes (I tested the…

Alex
- 13
- 2
1
vote
1 answer
Response Caching using VaryByQueryKeys with dictionary querystring argument
My ASP.NET Core MVC application has a controller method with a dictionary argument, passed via the request query string:
public async Task Get([FromQuery] Dictionary filterCriteria)
{
}
The application uses Response…

Paul Taylor
- 5,651
- 5
- 44
- 68
1
vote
2 answers
.net core UseResponseCompression conflicts with ResponseCache attribute when putting Vary header values
I am using the Response Compression Middleware in my .Net Core API application by calling
app.UseResponseCompression().
But in one of my API controller actions, I'm also using ResponseCache attribute and setting it to VaryByHeader =…

gdl123
- 33
- 4
1
vote
1 answer
ASP.net Core ResponseCache and RedirectToAction. How can anonymous only responses be cached?
Given the following controller:
public class MyController : Controller
{
[AllowAnonymous]
[ResponseCache(VaryByQueryKeys = new string[] { "id" }]
public async IActionResult Action1(string id)
{
if…

VMh
- 1,300
- 1
- 13
- 19
1
vote
2 answers
Android CacheResponse: get file path?
Is there a way to retrieve the file path of an Android CacheResponse? Sure, one can get an InputStream, but in cases where some API (e.g. NDK code) expects a file path that does not help. Sure one can use this stream to produce another file, but…

user6519354
- 169
- 1
- 7
0
votes
0 answers
ResponseCache For Spesific Customer in Dotnet
In my project I wanna use ResponseCache, for example this is my controller;
[Route("/user/getrosetteRewardStatu")]
[Authorize(Roles = "SelectedPos", AuthenticationSchemes = JwtBearerDefaults.AuthenticationScheme)]
…

ferhat tumer
- 13
- 3
0
votes
1 answer
Warning The 'Cache-Control' and 'Pragma' headers have been overridden with Antiforgery.DefaultAntiforgery
I am making use of DefaultAntiForgery in my Asp.Net Core application. I would like to enable ResponseCaching but getting this warning:
warn: Microsoft.AspNetCore.Antiforgery.DefaultAntiforgery
The 'Cache-Control' and 'Pragma' headers have been…

Anton Swanevelder
- 1,025
- 1
- 14
- 31
0
votes
1 answer
Net Core Custom Response Cache
I need to decide whether to cache the response according to the boolean value from the query string. Unfortunately, I couldn't find such an example. Can you help me?

Blackerback
- 47
- 4
0
votes
1 answer
Using ASP.NET Core 3.1 custom distributed cache for respones caching
I wrote a custom distributed cache, based on Azure BlobStorage, to optimized page speed. The website should deliver the cached page from cache, till cached page has been expired. This implementation should work like the existing…

user2209131
- 275
- 2
- 11
0
votes
1 answer
Asp.net core 2.2 response caching, cannot add must-revalidate to cache-control response header
I am using following setup for response caching:
services.AddMvc(options =>
{
options.CacheProfiles.Add("HomePage", new CacheProfile()
{
Duration =…

Robert
- 3,353
- 4
- 32
- 50
0
votes
2 answers
Prevent browser caching form values in .NET Core 2.2
ASP.net Core 2.2 MVC Web Application
I have a number of forms where I do NOT want the browser to cache/show any previous entered data when the user return to the page. I want the elements/form to NOT cache any information. I do not simply want the…

Beau D'Amore
- 3,174
- 5
- 24
- 56
0
votes
0 answers
Asp.net mvc core 2.1 response caching not working
Using visual studio 2017, I created an asp.net core mvc 2.1 application, and added Response Caching.
In Index.cshtml, added
@DateTime.Now.ToString()
When I ran the application in a browser, if I reload the page, the output time will vary by each…

Cal
- 747
- 1
- 13
- 30
0
votes
2 answers
ASP.Net Core Web API - ResponseCache attribute is not adding "Cache-Control" header to the reponse
I have multiple controllers in my ASP .NET Core application and I am using ReponseCache attribute like this on a few methods:
//controller
[Route("api/[controller]")]
[EnableCors("CorsPolicy")]
public class InsightsApiController :…

MuazzamAli
- 201
- 2
- 11