# Global Static Files (2)

In addition to the usage mentioned in Global Static Files (1), Edge also provides a third and more general usage.

Sometimes, we need to serve static resources on Edge and let clients in different regions access the static resources in the corresponding regions to improve the access efficiency of static resources.

# 1. Create Static Resource
  • Upload file:

Size limit: 10 MB.

  • Create directory:

# 2. Edit Static Resource

You able to re-upload the file content, but rename the file is not supported yet.

# 3. Delete Static Resource

# 4. Usage of Static Resources

If this rule is set, 1-2 segments (separated by /, e.g., if the URI is /a/b/c, then a and b will be obtained to form a new path /a/b) will be taken from the URI and used as the path to find the corresponding static file. If the start index is 0, it means start from the first segment. If the end index is 0, it means to the last segment.

# 5. Usage of Static Resources: Using static resources in Edgelang