Ross_79174
Mar 11, 2009Nimbostratus
Help caching urls with unique date/time stamp
Hello irule gurus!
We have an issue on our production service where we need to cache our rss feeds to offload our backend servers. The problem is that each rss url has a unique date/time stamp attached to it....therefore it never will "hit" in the cache since no two instances are ever the same. However, we are willing to give up some security for now, to go ahead and "strip" the url so that the date/time stamp are not put into the cache, but rather just the part of the url that stays consistent.
The complete url looks something like this:
/rss/Pepcom/Pepcom+June+2008?oauth_consumer_key=ced9fcdbcae5bd941f51cf82421e6413&oauth_nonce=6191575&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1236751715
However, we only need this to be able to properly serve the url:
/rss/Pepcom/Pepcom+June+2008?oauth_consumer_key=ced9fcdbcae5bd941f51cf82421e6413
We can drop everything from the first "&" on, and still serve the rss feed properly.
We would also like to keep each feed active in the cache for 10 minutes, before expiring.
Can anyone help?
Thanks,
Ross