Configuring Bunny CDN for non-WordPress websites

 

Overview

This article provides recommendations to configure Bunny CDN for non-DreamPress installations under any hosting plan.

Background

A Content Delivery Network (CDN), like Bunny CDN, can significantly improve a website’s performance by caching and delivering static content that is stored closer to site visitors. To ensure optimal performance and avoid caching issues, it is important to configure include and exclude settings based on the type of website you’re running.

Bunny CDN include/exclude recommendations

Below are recommended settings for common website types:

Site type Recommended includes Recommended excludes
Static Sites (e.g., HTML/CSS/JS-only Sites)

Static assets such as:

  • .css
  • .js
  • .jpg, .jpeg, .png, .gif
  • .webp, .svg, .woff, .woff2, .ttf, .eot (web fonts)
  • .ico, .pdf, .txt, .zip
None typically needed, unless website content is updated frequently and must be immediately displayed.
E-commerce Sites (non-WordPress)

Static assets such as:

  • .css
  • .js
  • .jpg, .png, .gif
  • .webp, .svg

Theme and product image folders such as:

  • /assets/, /static/, /images/

Cart and checkout pages such as:

  • /checkout*, /cart*

Account-related pages such as:

  • /account*, /login*

Dynamic content paths such as:

  • APIs, stock calculators, or prices that frequently change

CDN caching on checkout or cart pages can cause stale content or expose user-specific data—always exclude these.

Web Applications or SaaS Dashboards

Front-end static files such as:

  • .css, .js, .png, .svg, .woff2

Common directories such as:

  • /static/, /assets/, /dist/

User logins paths such as:

  • /login*, /dashboard*, /settings*

API endpoints such as:

  • /api/*, /graphql*, /data/*

Real-time updates such as:

  • chat, notifications, analytics streams
Blogs or CMS Platforms (non-WordPress)

Static files such as:

  • .jpg, .png, .css, .js

Theme and folders such as:

  • /uploads/, /themes/

Admin paths such as:

  • /admin*, /editor*

Comment or form endpoints

Dynamic scripts that change content on the fly

Custom or Hybrid Sites

Static files such as:

  • .css, .js, .png, .jpg, .svg, .webp, .woff2

Common folders such as:

  • /static/, /media/, /assets/

Media files such as:

  • .mp4, .mp3, .mov, etc. – especially if not all are stored in a /media/ directory

Any POST or login-based pages

Account, checkout, or admin areas

Pages with user-specific or frequently changing content

WordPress sites

For WordPress-specific recommendations, including recommended include/exclude settings and how to avoid caching sensitive areas such as /wp-admin/ or logged-in sessions, see this article.

Tine-tuning tips

The following recommendations ensure that the configurations you apply provide the most benefit for your website:

  • Test changes before applying them globally.
  • Use query-string-based exclusions (e.g., *preview=true*) for editorial or CMS preview tools.
  • Review CDN logs or analytics to detect unexpected cache behavior.
  • Keep dynamic paths excluded and cache only what's truly static. 

See also

DreamHost links

Third-party links

Did this article answer your questions?

Article last updated PST.

Still not finding what you're looking for?