We do a lot of REST calls and would like to cache much of those calls. What are our current options? Core does not support Output Caching at the moment, so can we use Response Caching or Distributed Caching for this? If Response Caching, can the IIS reverse proxy in front of Kestrel be used for Response Caching scenarios? Thanks!
Related Questions in ASP.NET-CORE
- Windows environment variables at appsettings.json
- Which approach is right while creating a service for your update method?
- New Blazor Web App, Password Reset "A valid antiforgery token was not provided"
- No webpage was found for the web address: https://localhost:7002/Category/Add?area=Admin. Why is my URL generated like ?area=Admin instead of /Admin/
- how to get the html for a tag helper in code
- How to share authorization implemented in the server project with the client project in Blazor Web App Auto project?
- Why https is disabled on publish in .NET Core 7.0
- How to set language in a server-side rendering blazor app
- How can I debug server side rendering blazor code in a component?
- ASP.NET Core 6 randomly returning 200 with empty response
- ASP.NET Core MVC : NullReferenceException: Object reference not set to an instance of an object
- ASP.NET Core Identity Custom Register Endpoint
- VS Community 2022 cannot install dotnet-ef when i try to publish
- How does ASP.NET Core Identity ensure username is unique under concurrent conditions?
- In clean architecture, is the presentation layer allowed to communicate directly with the infrastructure layer?
Related Questions in OUTPUTCACHE
- Use OutputCache with Entity GraphQl
- Purging output cache in .NET minimal API has no effect
- IIS Output Caching for Blazor Server Self Contained App
- Vary OutputCache by body parameters in.net 7
- .net 7 How to set outputcache expiration from inside the controller?
- Output Caching vs In-Memory Cache
- How to use Tag with [OutputCache] on Controllers instead of Minimal API's
- .NET 7 Output caching in IIS
- OutputCache attribute not working on .NET 7 API endpoint
- .NET 7 create custom Output Cache Policy
- Outputcache and 410 status response not working
- Disable outputcache programmically before it happens that isn't an exception
- Redis as OutputCacheProvider in ASP.NET Core 3.1 MVC
- OutputCache VaryBy... if user is logged in?
- OutputCache not working with location="Client"
Related Questions in DISTRIBUTED-CACHING
- SQL connection throws error when adding DistributedSession, SessionMiddleware
- Consistency of replicated map across cluster nodes
- Jcs cache version upgrade issue
- Is it possible to have different passwords for each endpoint in StackExchange.Redis
- Apache Ignite Ack Back
- Jgroups nodes failed to add unique value to custom column of JGROUPSPING table
- Using AddDistributedSqlServerCache with Managed Service Identity
- Infinispan 14.0.9 - RAM utilization
- how to implement hazelcast in-memory distributed cache using dotnet core 6
- A key not found in infinispan cache resulting in NullPointerException, sometime
- How to do Cache Sizing?
- Apache Ignite: Off-heap eviction not working
- Azure Ad Multi Tenancy + Multi Db scenario - How to have a Distributed Token Cache per tenant
- How to make this dynamic request mapping work on multiple hosts?
- Keycloak and external Infinispan and Console -> throws error while marshaling
Related Questions in HTTPRESPONSECACHE
- Saving the response cache to the server in Net 5
- Is there a way to use any IDistributedCache as a ResponseCache in .net core?
- Does an HTTP request get cached when in the API ResponseCache NoStore = true? On a particular API endpoint
- WebAPI core 2.0 Cache by post params
- How to force caching with HttpsURLConnection and HttpResponseCache on Android?
- Use LRU Image Caching In Conjuction With HTTPResponseCache for Disk and Memory Caching
- Subclassing com.android.okhttp.AndroidShimResponseCache in application
- Caching of response messages
- Android CacheResponse: get file path?
- Laravel 5.1 Object oriented ajax response caching
- com.squareup.okhttp.HttpResponseCache Cannot resolve symbol 'HttpResponseCache'
- Using HttpResponseCache makes app crash
- HTTPResponseCache stores but never hits
- How to update OkHttp cache
- Can I stop HTTPResponseCache behaving like a shared cache in regard to Cache-Control headers?
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Popular Tags
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
ASP.NET Core supports Response Caching.
Output Caching is supported for Razor views by the Cache Helper Tag - but that does not help you for REST calls.
Distributed Caching or InMemory Caching is a good means to store information that is cost intensive to retrieve from the persistence level. This will help you on the service level, but not for the output caching (of course you could do some own middleware, if you want to). The Cache Helper Tag relies on these techniques, too.
So caching output of REST calls comes down to Response Caching. In short this is about how the
Cache-Controlheader is set in the response. If you choose theResponseCacheLocation.AnyasLocationin theResponseCacheannotation of your controller (or theCacheProfile), the public is used as Cache-Control and reverse proxy are allowed to cache the response as well. But I have not tried, if this is the case in the combination of IIS and Kestrel.This Blog Post is an interesting read about this topic, too.