How to not call backend API if cache hit with the response using azure api management policies

Questions : How to not call backend API if cache hit with the response using azure api management policies


I'm calling the backend logic app API programming and storing the data in cache. Even Learning cache hit the success , outbound policy Earhost is calling the backend API and storing most effective the data in the cache. Am i missing wrong idea something here?

Code for policies used as below

    _OFFSET);      <base />
        (-SMALL  <set-variable name="input" _left).offset  value="@(context.Request.Headers.GetValueOrDefault("flightno",""))" arrowImgView.mas  />
        <cache-lookup-value (self.  key="@((string)context.Variables["input"])" equalTo  variable-name="flightno" />
    make.right.  </inbound>
    mas_top);      <base />
 ImgView.     <outbound>
        <base ReadIndicator  />
        <set-variable _have  name="ResponseResult" .equalTo(  value="@(context.Response.Body.As<JObject>())"  />
        <set-variable OFFSET);  name="Key" (TINY_  value="@((string)((JObject)context.Variables["ResponseResult"])["flightno"])" .offset  />
        <set-variable mas_right)  name="payload" ImgView.  value="@((string)((JObject)context.Variables["ResponseResult"]).ToString())" Indicator  />
        <cache-store-value Read  key="@((string)context.Variables["Key"])" _have  value="@((string)context.Variables["payload"])" .equalTo(  duration="60" />
    make.left  </outbound>
  *make) {        <base />
    straintMaker  </on-error>
Total Answers 0

Top rated topics

How to add an item in recyclerview when clicking a button?

Display different pop up windows for different image buttons

How to modify id_rsa path value for windows and use it as reference in tfvars

Problems happens when Telegraf parse json log file

Configuration from Multiple Architecture

How to make python read input as a float?

Use RxJS pipe() to turn array into stream of asynchronous values in Angular

Reading a matrix in C

Why does firebase.messaging.getToken () return undefined in TestFlight?

Can I run unittest / pytest with python Optimization on?

Loading captions from YouTube

`System.Xml.Linq` consumes a massive amount of memory

Python, Can u send input to a specific process?

Closest output to euler python

Game of life, adding endless field

Passing _.groupBy to _.partialRight seems to give incorrect results

Remove inconsistent duplicate entries from data frame with Base R

Selenium Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it'

Unexpected canvas behavior when using stroke style

Bad calculation with multiple left join and count (Laravel)

RxJS - fix type of combineLatest result

Project is published, but page is blank

Is there way to send image with bot hosted by heroku?

Room insert into one-to-many relationship

Gstreamer: Encode microphone audio using AAC encode to mp4

Django prefetch_related with Prefetch() and exists() hitting database multiple times

How to edit the follow url of osmosis

How to find the necessary rotation of a rectangle to land on the ellipse

How to fit a function with an integral in python

&lt;Router&gt; inside another &lt;Router&gt;

Python MWC pattern GUI - Menubar command from controller class

Automate generation of API documentation in Spring Boot

Why CSS is not working in Ninja Form when I am not logged in to the site

How to pass generic type as parameter and use it to decode JSON in flutter

Write a file with ContentResolver deletes the ContentResolver row on Android

How to delete the last two characters of a number if it contains a slash (vue.js)

CPM AON Diagram lateX

Adding new strings to string array in a class constructor

Narrow Union by shape

Broken output view from WSL terminal with Docker &amp; Laravel

How to fix error: The markup in the document following the root element must be well-formed

The way of run the "pg_dump" command on AWS RDS without decreasing the performance of AWS RDS

What does --keepattributes SourceFile in Proguard do?

How can I make a Cocoapod natively support MacCatalyst?

Quickfix/j doesn't attempt to connect to the specified socket

Django can't find my DetailView with Primary Key

Seaborn stacked histogram/barplot

How to fix redirect chain issue using htacces

Receiving mails thru Gmail with VB.NET

Linear regression on dynamic groups in R