Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    gardr-unique-token-extpublic

    This package has been deprecated

    Author message:

    This package has been renamed to gardr-plugin-ext-unique-token

    Garรฐr Unique Token Plugin

    Replaces the string GARDR_UNIQUE_ID with timestamp + position id to get unique URLs

    If you have multiple banners with the same position name, you might want to generate the banner URL once for all the positions. When the URL is the same it might load from the browser cache even when setting correct no-cache headers. By using the token GARDR_UNIQUE_ID in the url and this plugin, the token will be replaced with a timestamp and the id of the banner (which is different for each with the same name).

    Install

    npm install gardr-unique-token-ext --save
    

    Use

    In you ext bundle file:

    var gardrExt = require('gardr-ext');
    var uniqueToken = require('gardr-unique-token-ext');
    
    gardrExt.plugin(uniqueToken);
    
    module.exports = gardrExt;
    

    install

    npm i gardr-unique-token-ext

    Downloadsweekly downloads

    5

    version

    0.0.1

    license

    MIT

    last publish

    collaborators

    • avatar
    • avatar