Grav CDN Integration

This guide covers the Grav CDN integration. Grav is modern flat-file content management system (CMS). It has a built in caching and is super lightweight. Learn more about Grav here: http://getgrav.org/

  1. Create a Pull Zone before you start the Grav CDN integration
  2. Install the Grav CDN plugin in your root dir (e.g. /var/www/grav) via this command: bin/gpm install cdngrav cdn installation
  3. Open an editor and copy the following configuration into ./user/config/plugins/cdn.yaml
    enabled: true                                           # set to false to disable this plugin completely
    pullzone: zonename-hexUserId.kxcdn.com                  # pullzone domain / zone URL
    tags: 'a|link|img|script'                               # HTML tags to search
    tag_attributes: 'href|src'                              # HTML tag attributes to search
    inline_css_replace: true                                # Replace inline css attribute references
    extensions: 'jpe?g|png|gif|ttf|otf|svg|woff|xml|js|css' # File extensions to replace on

    Replace the bold marked pullzone with your zone URL.

  4. Verify if the assets in your Grav website are loading from KeyCDNgrav cdn verify

Leave A Comment?