Automattic / Automattic/jetpack

Automatically disable CDN when enabling debug mode

Open
#16,854 0 comments 0 reactions 0 assignees View on GitHub
[Feature] Asset CDN [Feature] Offline Mode [Feature] Photon [Pri] Low Enhancement Good For Community
Dominant language
PHP
Stars
1.8k
Forks
898
Avg merge
1d 18h
Merged PRs (30d)
774

Description

#### Is your feature request related to a problem? Please describe.
I was recently redesigning my website and I did it in localhost. I enabled Jetpack's debug mode and noticed the CDN for CSS, JS and images was still working. If you don't have Internet access that's an issue.

#### Describe the solution you'd like
The solution would be pretty simple. When enabling debug mode, Jetpack should automatically disable every CDN so WordPress would use the local files.

#### Describe alternatives you've considered
The alternative is just disabling the CDN manually.

Contributor guide

Open the contributing guide

Research direction

The issue does not name files, tests, or entry points. Start by locating Jetpack's debug-mode handling and the integrations that serve CSS, JavaScript, and image assets through CDNs. Done means enabling debug mode disables every CDN so the site uses local assets without Internet access.

Written by the indexing model from the issue text.

Assessment

Tech stack
css, javascript, php
Domain
backend, performance, web-dev
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.