활동이 없어 이 대화는 잠겼습니다. 새 게시물을 작성해 주세요.
활동이 없어 이 대화는 잠겼습니다. 새 게시물을 작성해 주세요.
Hi Team,
How do I cache the /etc/cloudsettings.kernel.js file in the dispatcher?
Regards
해결되었습니다! 솔루션으로 이동.
토픽은 커뮤니티 콘텐츠를 분류하여 관련성 있는 콘텐츠를 찾는 데 도움이 됩니다.
조회 수
답글
좋아요 수
Hi @paulojorgemtava
You can add the below highlighted rule in your farms any file under rules section and it will cache the file.
/rules
{
/0000 { /glob "*" /type "deny" }
/0001 { /glob "/etc/cloudsettings.kernel.js" /type "allow" }
}
Please refer the rules section here priovided by Adobe:
Hope this helps!
Thanks!
조회 수
답글
좋아요 수
@paulojorgemtava
Could you please provide the complete file path with file extension?
조회 수
답글
좋아요 수
조회 수
답글
좋아요 수
@paulojorgemtava
This file will not be cached in dispatcher.
Dispatcher does not cache a file when there is no extension.
Thanks!
조회 수
답글
좋아요 수
조회 수
답글
좋아요 수
@paulojorgemtava
If you see the below examples:
http://localhost:4502/etc/cloudsettings.kernel.js/libs/settings/cloudsettings/legacy/contexthub - This is the file which will deliver the content which does not have any extension which will not be cached.
http://localhost:4502/etc/cloudsettings.kernel.js - This has an extension but it does not deliver any content.
There is another way to cache the file by applying a rewrite rule but for that the incoming URL needs to be updated and should have an extension which I am not sure if it will be possible in your case as you might not be able to change the incoming URL such as:
Request URL: http://localhost:4502/etc/cloudsettings.kernel.js/something.js -> Rewrite to http://localhost:4502/etc/cloudsettings.kernel.js/libs/settings/cloudsettings/legacy/contexthub
which will serve the content as well as cache the content with something.js name.
Thanks!
조회 수
답글
좋아요 수
조회 수
답글
좋아요 수
see below
조회 수
답글
좋아요 수
조회 수
답글
좋아요 수
조회 수
답글
좋아요 수
Hi @paulojorgemtava,
Has that resolved the cache issue? I see the publisher takes long time to return the response every time the request is made.
Could you please post the resolution you tried for this?
조회 수
답글
좋아요 수
조회 수
답글
좋아요 수
Hello @paulojorgemtava,
That is exactly what i am seeing, the long response time from the publish server.
Could you please let me know in the rep:policy node what was the content added, was the user added was "everyone"?
If possible can you provide a screen-shot, that would be really very helpful.
조회 수
답글
좋아요 수
조회 수
답글
좋아요 수
The problem is related to URL structure and the fact that the suffix for the original resource (/etc/cloudsettings.kernel.js/conf/xxx/settings/cloudsettings/default/contexthub) does not have any extension. Dispatcher ignores such requests. Sadly, It looks like a dead end... However, with a bit of trick you can force the dispatcher to cache it. If you name your contexthub configuration in a way which ends with an extension, i.e. /conf/xxx/settings/cloudsettings/default/contexthub.js, then the full request will become cacheable (/etc/cloudsettings.kernel.js/conf/xxx/settings/cloudsettings/default/contexthub.js).
After you rename the configuration, you need to remember about updating the references in content, like on the screenshot:
조회 수
답글
좋아요 수