Prerender cache plugin
Prerender JS cache plugin implemented using azure blob storage for on-premise phantomjs instances, inspired in S3 Amazon cache plugin included in the source of prerender service.
Install
npm install prerender-cache-azure-storage --save
Create a new file called azureCache.js in your <prerender_folder>/lib/plugins folder. with the following content:
module.exports = require('prerender-cache-azure-storage');
In your <prerender_folder>/server.js append the following content:
server.use(prerender.azureCache());
Run Prerender.
Credentials
In order to setup your credentials you can use:
- Environment variables - AZURE_STORAGE_ACCOUNT and AZURE_STORAGE_ACCESS_KEY, or AZURE_STORAGE_CONNECTION_STRING.
- Constructors
As described here: Azure Storage SDK Docs