menu
Logo
  • Why azing?
  • Blog
  • Help
ENarrow_drop_down
  • DE
  • EN
Suche in Checklisten
search
azing Logo ENarrow_drop_down
  • DE
  • EN
  • Why azing?
  • Help
2sxc
drive_folder_upload
  • homeChecklist Templates
  • south
  • fiber_manual_recordApps
  • south

folder_sharedApp: CDN - Cloudflare

  • info Convert to information
  • insert_drive_file Convert to boilerplate
  • homeChecklist Templates
  • south
  • fiber_manual_recordApps
  • south

folder_sharedApp: CDN - Cloudflare

Folders and checklists

  • check_circleInstall and configure CDN App

Parts of this checklist (0) expand_more

These are small document-parts which are used in other documents. They are not a starting point for any real activity. Because of this, they will be listed further down and the search will not list them unless requested. 

Create new Pane in Skin

  1. Open your Skin /Web/Portals/_default/Skins/YOURSKIN
  2. Open your default.ascx or controls/theme-body.ascx file
  3. Go to the end of your HTML
  4. Add your new CachePane <div id="CachePane" runat="server"></div>

Install CDN App

  1. For now: Export the App from the Apps Dev
    https://app-dev.2sxc.org/cdn/en-us/cdn
  2. Go to Admin
  3. Export App
  4. Install the App on your site
  5. Add the to the CachePane

Add Module to all pages

  1. Open Module Settings
  2. Select Checkbox "Display Module on All Pages"
  3. Save

Prepare DNN

  1. Copy StripSelectedCookiesModule.cs from your installed App
  2. Paste it in /Web/App_Code
  3. Edit your web.config
  4. Add <add name="StripSelectedCookies" type="ToSic.Dnn.StripSelectedCookiesModule" preCondition="managedHandler" /> in <system.webServer><modules>

App Configuration

Create an API Token

  1. Go to https://dash.cloudflare.com/profile/api-tokens 
  2. Create a Token
  3. Create Custom Token
  4. Set following settings
    1. Give a proper name
    2. Set persmission to: Zone / Cache Purge / Purge
    3. Set Zone Resources to: Include / Specific zone / YOUR ZONE
    4. Contine to summary
    5. Follow last step
    6. Save the Token - After saving, you will never see the token again

Get Zone ID

  1. Go to the Zone Overview
  2. Copy the Zone ID

App Settings

  1. Go to App Settings
     
    1. Enter the Zone ID
    2. Enter Token

Cloudflare Configuration

  1. Select your domain
  2. Select Cache Rules
  3. Create 2 Rules
    1. Cache Everything
      1. Select Custom filter expression
      2. Select URI Full / wildcard / https://www.DOMAIN.ch/*
      3. Select Eligible for cache
      4. Edge TLL + Add Setting
      5. Select Use cache-control header if present, bypass cache if not
    2. BYPASS when Loggedin
      1. Select Custom filter expression
      2. Select Cookie value of / exists / .DOTNETNUKE
      3. Select Bypass cache
Logo
Legal | Content Copyright CC-BY 4.0
bug_reportReport Bug
  • info
  • Links
  • Permissions
code Share
code
URL copied to clipboard.
Embed Checklist close
Copy Copy
Content Copyright

CC-BY 4.0

Translations

None

2sxc - Content Management for DNN & Oqtane Logo

2sxc - Content Management for DNN & Oqtane

QR-Code
azing.org/2sxc/r/nGQByy35
View & Use

Public (can be used by everybody)

Edit & Admin

Default (all members can edit)

This catalog has a simple permission model, where all members have the same permissions. For advanced permissions, upgrade to Enterprise.

Here you can see how this document is used and linked by other documents

Used in (0)

Others referencing this

Uses these (0)

Documents linked from this document

How it Behaves

How this document is categorized changes how it behaves.

This is a main document, it is listed normally and appears in search result.

Type

This is a Checklist. Lists are converted into checkboxes.

Get something to say?

Comment to start a discussion or make a note
send

please log on to chat

close

Durchsuche ganz Azing