Created
December 22, 2015 19:13
-
-
Save fkleon/ca12c8f370bb5cda7e02 to your computer and use it in GitHub Desktop.
Alfresco extension to enable Dojo's cacheBust to test compatibility with Aikau
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<#assign webframeworkConfig = config.scoped["WebFramework"]["web-framework"]!> | |
<@markup id="dojoCacheBust" target="setDojoConfig" action="after" scope="global" > | |
<#if webframeworkConfig.dojoEnabled> | |
<script type="text/javascript"> | |
// Enable Cache Bust for testing | |
dojoConfig.cacheBust = Date.now(); | |
</script> | |
</#if> | |
</@> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<extension> | |
<modules> | |
<module> | |
<id>DOJO_Cache_Bust_Enabler</id> | |
<auto-deploy>true</auto-deploy> | |
<auto-deploy-index>0</auto-deploy-index> | |
<evaluator type="default.extensibility.evaluator"/> | |
<customizations> | |
<customization> | |
<targetPackageRoot>dojo</targetPackageRoot> | |
<sourcePackageRoot>dojo.cache</sourcePackageRoot> | |
</customization> | |
</customizations> | |
</module> | |
</modules> | |
</extension> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Those files should live in a JAR under the following paths:
alfresco/site-data/extensions/dojo-cache-bust-enabler-extension.xml
alfresco/site-webscripts/dojo/cache/dojo-bootstrap.get.html.ftl
The JAR can then be deployed to the
lib/
folder of any Spring Surf webapp.