ESI invalidate Tag ESI Tag Descriptions

11-48 Oracle Fusion Middleware Administrators Guide for Oracle Web Cache ■ incorrectesifragment: An error occurs when Oracle Web Cache tries to parse or process the ESI fragment response body due to errors in the body. ■ incorrectxmlfragment: An error occurs because there is an error in XSLT retrieval, parsing, or processing by Oracle Web Cache.

11.4.8.3 Example

The following ESI markup attempts to fetch an advertisement. If the advertisement cannot be included, Oracle Web Cache includes a static link instead. esi:try esi:attempt esi:comment text=Include an ad esi:include src=http:www.company.comad1.htm esi:attempt esi:except esi:comment text=Just write some HTML instead a href=www.company.comwww.company.coma esi:except esi:try The following ESI markup attempts to fetch a fragment. If the fragment cannot be included because of httpclienterror, then Oracle Web Cache includes cgi-binesi-fetch?esitryNestL1.html instead. esi:try esi:attempt esi:include src=frag.html esi:attempt esi:except type=httpclienterror esi:include src=cgi-binesi-fetch?esitryNestL1.html esi:except esi:try The following esi:try attempts to include the fragment http:server.portal.complsppcdemoPCDEMO.wwpro_app_ provider.execute_portlet51310494026 containing several HTTP request headers. If the fragment cannot be included because of various type errors, Oracle Web Cache returns an Unknown ESI Exception error. esi:try esi:attempt esi:include src=http:server.portal.complsppcdemoPCDEMO.wwpro_app_ provider.execute_portlet51310494026 timeout=15000 esi:request_header name=X-Oracle-Device.MaxDocSize value=0 esi:request_header name=Accept value=texthtml,textxml,textvnd.oracle.mobilexml esi:request_header name=User-Agent value=Mozilla4.0 compatible; MSIE 5.5; Windows; YComp 5.0.0.0 RPT-HTTPClient0.3-3 esi:request_header name=Device.Orientation value=landscape esi:request_header name=Device.Class value=pcbrowser esi:request_header name=PORTAL-SUBSCRIBER value=us esi:request_header name=Device.Secure value=false esi:request_header name=PORTAL-SUBSCRIBER-DN value=dc=us,dc=oracle,dc=com esi:request_header name=PORTAL-SUBSCRIBER-GUID value=A5EE385440E6252BE0340800208A8B00 esi:request_header name=Accept-Language value=en-us esi:request_header name=PORTAL-USER-DN Caching Dynamic Content with ESI Language Tags 11-49 value=cn=public,cn=users,dc=us,dc=oracle,dc=com esi:request_header name=PORTAL-USER-GUID value=A5EE55B396E22651E0340800208A8B00 esi:request_header name=Content-Type value=applicationx-www-form-urlencoded esi:include esi:attempt esi:except type=incompatiblefragmentversion This happens when a fragments processing requirement is not supported or not compatible with the template. esi:except esi:except type=noconnection The cache is unable to connect to the origin server serving this fragment. esi:except esi:except type=nestingtoodeep The fragment include depth has exceeded the maximum include depth. The default value defined in Web Cache is 3. esi:except esi:except type=httpservererror The origin server returns an HTTP 5xx status code, a server error. esi:except esi:except type=httpclienterror The origin server returns an HTTP 4xx status code, a client error, such as a malformed HTTP request or an unauthorized access. esi:except esi:except type=incorrectresponseheader This happens when the response headers for a fragment cause the error. esi:except esi:except type=incorrectxmlfragment This happens when there is any kind of error in Oracle Web Cache XSLT retrieval, parsing, or processing. esi:except esi:except type=originserverbusy The origin server for this fragment is busy and cannot accept new requests now. This is caused by Oracle Web Cache-to-origin server request queue limit. esi:except esi:except type=networktimeout This is thrown by a fragment whose request to the origin server has timed out in the network connection. esi:except esi:except type=incorrectesifragment An error is encountered when Oracle Web Cache tries to parse or process the ESI fragment response body due to errors in the body. esi:except esi:except Unknown ESI Exception esi:except esi:try

11.4.9 ESI vars Tag

The esi:vars tag enables you to use variables outside of ESI tags. For example, instead of specifying a variable inside a esi:include or esi:choose block, you can use the esi:vars tag to specify a variable inside HTML code.

11.4.9.1 Syntax

esi:varsOptional HTML code VARIABLE_NAME{key} Optional HTML codeesi:vars