Expand my Community achievements bar.

SOLVED

Dispatcher caching

Avatar

Level 3

Hi all,

We use services request to fetch the JSON data for the html page and the request does not have any extension. All the html pages are cached in the dispatcher. Is there a way to cache the service request so that whenever the user hit the page (whenever service request is used) the request is served from the cache and does not go to publisher.

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

Hi,

the dispatcher caches only files which have an extension; and the extensions which should be considered for caching can be configured in the dispatcher config as part of the caching rules.

So you need to add an extension to your service request (e.g. ".json"), and configure the dispatcher accordingly, then the caching will work.

Cheers,
Jörg

View solution in original post

2 Replies

Avatar

Level 10

Can you elaborate more on those services and how they are accessed ?

Avatar

Correct answer by
Employee Advisor

Hi,

the dispatcher caches only files which have an extension; and the extensions which should be considered for caching can be configured in the dispatcher config as part of the caching rules.

So you need to add an extension to your service request (e.g. ".json"), and configure the dispatcher accordingly, then the caching will work.

Cheers,
Jörg