Author |
Message
|
smdavies99 |
Posted: Fri Jan 16, 2015 3:53 am Post subject: HTTP Content Expiration |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
I'm currently trying to understand the following (from a spec)
Quote: |
When setting up the HTTP Response for XXX make sure that the HTTP Header includes an expiration time. Otherwise the HTTP message that is sent back to machine that is hosting YYY/Server will live until the machine is rebooted. In our testing environment, we enable the content expiration to expire immediately in Internet Information Services (IIS) as per image below:
|
They show a panel from an IIS server config where the messages were set to timeout immediately.
In IIS it is called CONTENT EXPIRATION
http://technet.microsoft.com/en-gb/library/cc770661%28v=ws.10%29.aspx
The bits I don't quite get are as follows:-
1) If a message is set to timeout immediately then does this mean in reality 'immediately after is has been received' or something else
2) Can we set this ourselves in a flow? _________________ WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995
Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions. |
|
Back to top |
|
 |
fjb_saper |
Posted: Fri Jan 16, 2015 4:26 am Post subject: Re: HTTP Content Expiration |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
smdavies99 wrote: |
I'm currently trying to understand the following (from a spec)
Quote: |
When setting up the HTTP Response for XXX make sure that the HTTP Header includes an expiration time. Otherwise the HTTP message that is sent back to machine that is hosting YYY/Server will live until the machine is rebooted. In our testing environment, we enable the content expiration to expire immediately in Internet Information Services (IIS) as per image below:
|
They show a panel from an IIS server config where the messages were set to timeout immediately.
In IIS it is called CONTENT EXPIRATION
http://technet.microsoft.com/en-gb/library/cc770661%28v=ws.10%29.aspx
The bits I don't quite get are as follows:-
1) If a message is set to timeout immediately then does this mean in reality 'immediately after is has been received' or something else
2) Can we set this ourselves in a flow? |
I would expect this to be a specific IIS feature that needs to be set in IIS.
From your description I understood that the content, once received would live in IIS forever until it is expired. I would expect that the setting of the expire upon receipt is being set as an IIS feature.  _________________ MQ & Broker admin |
|
Back to top |
|
 |
mgk |
Posted: Fri Jan 16, 2015 4:36 am Post subject: |
|
|
 Padawan
Joined: 31 Jul 2003 Posts: 1642
|
This is a feature of base HTTP, rather than IIS - see section "14.21" in RFC 2616 about here: https://tools.ietf.org/html/rfc2616#page-127 which talks about the HTTP "Expires" header. This is also mentioned in the first sentence of the TechNet article you mentioned: "Configure the HTTP expires response header when you want to specify the expiration of Web content" although it is easy to miss it.
To set this in an HTTPReply node, simply create an "Expires" field in an "HTTPReplyHeader" parser to the date you want before the HTTPRReply node.
Kind regards, _________________ MGK
The postings I make on this site are my own and don't necessarily represent IBM's positions, strategies or opinions. |
|
Back to top |
|
 |
fjb_saper |
Posted: Fri Jan 16, 2015 4:47 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Thanks for setting me straight. _________________ MQ & Broker admin |
|
Back to top |
|
 |
smdavies99 |
Posted: Fri Jan 16, 2015 5:05 am Post subject: |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
Many thanks for the information. I'll be giving it a try later today.
 _________________ WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995
Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions. |
|
Back to top |
|
 |
|