CDN 用戶操作
CDN User Guide
CDN User Guide
  • Domain Management
    • Add Domain
    • Batch Modify Upstream
    • Batch Remove Specific Domains
    • Export Site Records
  • Modules
    • Site Certificate
    • Token Auth
    • Custom Header
    • Redirects
    • CORS Setting
    • Proxy Rewrite
  • Site Settings
    • Cache Setting
    • Compress
    • Rates Limit
    • DNS API
    • Ports
  • Firewall
    • Whitelist Setting
    • Blacklist Setting
    • Positions Setting
    • Anti CC Setting
    • Interval Freq. Limit
    • Second Freq. Limit
    • User Agent Setting
  • ACL
  • Block List
  • Error Pages
  • Site Info.
Powered by GitBook
On this page
  • How to set up caching?
  • Add Cache Field Descriptions:
  1. Site Settings

Cache Setting

PreviousSite SettingsNextCompress

Last updated 6 months ago

By configuring caching, you can store your resources on CDN nodes, which enhances the speed at which local users can access your services.

How to set up caching?

  • Navigate to Sites -> Sites Settings -> Site Settings -> Cache Settings

  • Click Add Cache

Add Cache Field Descriptions:

  • Add Cache

    • File Type: Cache based on file extensions.

    • URL: Cache based on URL regular expressions.

    • Name: Any identifiable name for the cache rule.

    • Cache Duration: How long after loading the cache before data is fetched again from the origin.

  • Value

    • If the type is File Type, here you specify the file extensions to be cached (multiple selections allowed).

    • If the type is URL, enter the URLs to be cached.

    • Ignore Query Parameters for Caching: By default, different parameters in the same URL are treated as different files for caching. With this option selected, URLs with different parameters will be treated as the same file for caching purposes.

    • Force Caching: By default, caching occurs only if the response header of the file resource includes Cache-Control. When selected, caching will occur even if there's no Cache-Control header.