Support

Find answers, guides, and tutorials to supercharge your content delivery.

Grav CDN Integration

Updated on October 4, 2018

This guide covers the Grav CDN integration. Grav is modern flat-file content management system (CMS). It has a built in caching and is lightweight. Follow the steps below to integrate Grav with KeyCDN:

  1. Create a Pull Zone before you start the Grav CDN integration.

  2. Install the Grav CDN plugin in your root directory (e.g. /var/www/grav) by running the bin/gpm install cdn command:

  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: example-hexid.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 pullzone with your Zone URL or Zone Alias.

  4. Verify if the assets in your Grav website are loading from KeyCDN:

Supercharge your content delivery 🚀

Try KeyCDN with a free 14 day trial, no credit card required.

Get started
KeyCDN uses cookies to make its website easier to use. Learn more