+

Search Tips   |   Advanced Search

cookie.ignore.regex parameter

Use the cookie.ignore.regex parameter to configure which cookies to ignore from the header field. Ignoring these cookies excludes them from the digest computation.

  1. Start the WebSphere_Portal server.

  2. Log in to the WAS console, and go to...

      Resources | Resource Environment | Resource Environment Providers | WP ConfigService | Additional Properties | Custom Properties | New

  3. Name of required property and set the value of the property to the appropriate value as required.

    To specify cookies that are NOT included in the digest computation, specify...

      cookie.ignore.regex = digest\\.ignore.*|Item1|Item2|Item3|Item4

    ... where Item1, Item2, Item3, Item4 are the items to exclude from getting cached. The default value is...

      digest\\.ignore.*|LtpaToken|LtpaToken2|JSESSIONID

    Any cookie set or modified by any component causes the digests in the URL to change, directly affecting the cache of those resources. If a particular cookie is required for some custom code or feature to work but it is not designed to invalidate the cache, that cookie name should be included in the cookie.ignore.regex list or at least matched successfully by the regular expression in that property. This process ensures that changes to the cookie value do not have any adverse impact on performance by prematurely invalidating cache entries.

  4. Click Apply and save the changes.

  5. Log out of the WAS console.

  6. Restart the WebSphere_Portal server.


Parent Caching