Diese Konversation wurde aufgrund von Inaktivität geschlossen. Bitte erstellen Sie einen neuen Post.
Level 1
Level 2
Melden Sie sich an, um alle Badges zu sehen
Diese Konversation wurde aufgrund von Inaktivität geschlossen. Bitte erstellen Sie einen neuen Post.
When user browses certain page, dispatcher will cache js and css the page using, like /apps/project/components/componentA/clientlibs.css.
While if the css or js (under clientlibs folder) is updated on Author and Publish, will the dispatcher re-cache this updated file like html page does?
In my environment it seems that dispatcher will not re-cache css or js. Am I missing some configure or is dispatcher unable to sence css and js update?
Gelöst! Gehe zu Lösung.
Zugriffe
Antworten
Likes gesamt
In the dispatcher.any invalidate section you can add css js so that it can gets invalidate. As changes to js/css very minimal after launch rather than auto invalidating manual clearing the cache is preffered.
Zugriffe
Antworten
Likes gesamt
You can use mod_expires module from apache[1] for this. Setting like this could avoid permanent caching
# enable expirations
ExpiresActive On
# Image - 1 Month; JS,CSS - 1 Hour; font - 1 week
ExpiresByType image/gif "access plus 1 month"
ExpiresByType application/javascript "access plus 1 hour"
ExpiresByType application/x-javascript "access plus 1 hour"
ExpiresByType text/css "access plus 1 hour"
ExpiresByType image/png "access plus 1 month"
ExpiresByType application/octet-stream "access plus 1 week"
[1] http://httpd.apache.org/docs/current/mod/mod_expires.html
else you might have to write your own custom sling rewriter
Zugriffe
Antworten
Likes gesamt
In the dispatcher.any invalidate section you can add css js so that it can gets invalidate. As changes to js/css very minimal after launch rather than auto invalidating manual clearing the cache is preffered.
Zugriffe
Antworten
Likes gesamt
Thank you so much. let me try it out later.
Zugriffe
Antworten
Likes gesamt
Sham HC wrote...
In the dispatcher.any invalidate section you can add css js so that it can gets invalidate. As changes to js/css very minimal after launch rather than auto invalidating manual clearing the cache is preffered.
For the documentation, see the "Automatically Invalidating Cached Files" section below http://docs.adobe.com/docs/en/dispatcher/disp-config.html#Configuring%20the%20Dispatcher%20Cache
Zugriffe
Antworten
Likes gesamt
Zugriffe
Likes
Antworten
Zugriffe
Likes
Antworten