Skip to content
This repository has been archived by the owner on Mar 13, 2024. It is now read-only.

I added the Page Rules instance #66

Closed
wants to merge 1 commit into from

Conversation

Perlover
Copy link
Contributor

@Perlover Perlover commented Jun 5, 2020

Hello!

I added the Page Rules instance and already tested successfully by this code for example:

cf.pageRules.add(zoneId, {
    targets: [
        {
            "target": "url",
            "constraint": {
                "operator": "matches",
                "value": `https://${domain}/*`
            }
        }
    ],
    actions: [
        {
            "id": "cache_level",
            "value": "cache_everything"
        }
    ]
})

@terinjokes
Copy link
Contributor

Looks good. Do you mind updating your commit message to match the format used in other commits?

@terinjokes
Copy link
Contributor

Merged as f20a428.

@terinjokes terinjokes closed this Aug 4, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants