ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere DataPower » APIConnect || etags

Post new topic  Reply to topic
 APIConnect || etags « View previous topic :: View next topic » 
Author Message
aspre1b
PostPosted: Mon Jun 18, 2018 12:42 am    Post subject: APIConnect || etags Reply with quote

Voyager

Joined: 05 Jul 2007
Posts: 78
Location: Coventry, UK

Has anyone had any experience implementing etags and APIConnect caching in APIConnect?

An ETag is an opaque identifier assigned by a web server to a specific version of a resource found at a URL. If the resource representation at that URL ever changes, a new and different ETag is assigned. Used in this manner ETags are similar to fingerprints, and they can be quickly compared to determine whether two representations of a resource are the same.

We have a very simple API, which returns a static data set which changes every 3 months. There are no variables/parameters passed as part of the request, only standard headers.

The ETag is used to optimise browser calls, but we would like to enable API caching at the API Gateway (APIConnect), which would mean that APIConnect would need to be able to compare the ETag on the request header and compare it against the cached payload. If the headers match, then return a HTTP 304, else send back the cached payload.

We want the cache to timeout every 24 hours, and thus the next call would go to the internal API, which supports ETags. When a client calls with a non-identical ETag or no ETag, the cache is refreshed.

Is this at all possible in APIConnect?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere DataPower » APIConnect || etags
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.