Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Caching rule for contexthub js

susheel
Level 5
Level 5

The below url is fine in publish but how do we cache this in dispatcher as there is no extension at end:

/etc/cloudsettings.kernel.js/libs/settings/cloudsettings/legacy/contexthub

Shall we ignore this for caching ?

3 Replies
smacdonald2008
Level 10
Level 10

ContextHub is a tool on author - no reason to cache this.

susheel
Level 5
Level 5

Is it? what's the use of it having in author. We want to use it as data layer to integrate in launch so it should be available in publish as well dispatcher so that we can use that data ?

raju-komari
Level 1
Level 1

HI @susheel ,

This is legacy kernel JS ( /etc/cloudsettings.kernel.js/libs/settings/cloudsettings/legacy/contexthub) which is pointing to /apps/settings/cloudsettings/legacy/contexthub.kernel.js.

 

So better you can add rewrite rule in Dispatcher vhosts.d for above one along with whitelisting allow for /apps folder in dispatcher.d file to cache this file on Dispatcher side.