EdgeRules: Access-Control Header for Magento 2.x
The built-in Magento rewriting module also rewrites static HTML pages. This is great for performance, but browser security policies require additional headers to be passed over the CDN in order for HTML pages to be loaded over the StackPath CDN.
S...
Read More »
EdgeRules: Add a Custom Header to Origin
Overview
You can use this document to apply a custom request header to the CDN requests for your origin server.
This rule can be used to check for specific browsing habits or confirmation that a request was made by the CDN for troubleshooting pur...
Read More »
EdgeRules: Add an x-robots-tag Header
Overview
You can use this document to learn how to prevent a page from being indexed in Google search results.
To accomplish this, you can include a 'noindex' header in HTTP Response headers via EdgeRules.
Note:For the noindex directive to be e...
Read More »
EdgeRules: Bypass Cache Using a Cookie
With StackPath, it is possible to bypass cache based on a Cookie and/or Cookie and value.
When the cookie filter is matched, caching is disabled and the request will pass through the CDN to the origin as a no-cache no-store response.
Use Cases
E-C...
Read More »
EdgeRules: Configure URL signing from the Control portal
URL Signing protects CDN assets by ensuring only authorized end users are able to access them. URL signing can be used to set an expiration time on a given URL, verify the URL was requested by the same IP address it was issued to, or only allow ce...
Read More »
EdgeRules: Excluding Files from CDN Cache
If you are using a CMS or custom CDN implementation that is not included in the CDN no-cache rules, you may desire to apply a rule to prevent the CDN from caching specific files or paths. This article will walk through the process of setting up a ...
Read More »
EdgeRules: Expansion Variables
Expansion variables allow for dynamic rules to be made without needing new rules for every possible permutation of a request or response. Use expansion variables for advanced fine-tuning of the delivery of your content over the StackPath network.
...
Read More »
EdgeRules: Redirect Mobile User-Agent
Overview
You can use this document to learn how to redirect mobile devices to mobile websites for full-site integrations.
Every request made to the internet includes a "User-Agent" header that identifies the device sending the request. StackPath u...
Read More »
EdgeRules: Redirect to a Custom Robots.txt
A robots.txt file improves SEO by instructing search engine crawlers to which pages they can crawl and index. This EdgeRule will redirect any request to the StackPath CDN for a robots.txt to the file that is stored on the origin server.
If you hav...
Read More »
EdgeRules: Redirect WWW to Apex domain
Overview
You can use this document to learn how to redirect traffic from your www subdomain (www.example.com) to your apex domain (example.com), as well as HTTP to HTTPS protocol with a 301 redirect.
You can also use this document to redirect othe...
Read More »
95% of questions can be answered using the search tool. This is the quickest way to get a response.