Say I didn't want the URLs for static URLs on administration pages to be served by the CDN, but rather by the web server. How would I do that. As of RC1, the interface and help text for excluding files is a lot clearer, but those are for static URL paths, not dynamic Drupal paths.

In other words, sort of like block visibility, I'd like to be able to add admin/* so that those pages take CSS/images/etc. from the webserver, and on all other paths to pull static files from http://cdn.example.com.

Comments

wim leers’s picture

Title: Can I disable the CDN on configurable Drupal paths? » New type of exceptions: Drupal paths (or: disable the CDN on configurable Drupal paths)
Assigned: Unassigned » wim leers
Category: support » feature

Makes sense. Strange actually, that this hasn't been requested before :)

Will be added in RC2.

sillygwailo’s picture

Does depending on Visibility API make sense for this case?

wim leers’s picture

It does, but I don't want to introduce another dependency. I will use http://api.drupal.org/api/function/drupal_match_path for this.

sillygwailo’s picture

StatusFileSize
new5.34 KB
new5.4 KB

I have a patch for RC1 that seems to work, and one for 6.x-2-x-dev that definitely doesn't work (i.e. needs work). Attached.

sillygwailo’s picture

Status: Active » Needs review
wim leers’s picture

Component: User interface » Module
Status: Needs review » Fixed
StatusFileSize
new9.25 KB

Thanks for your patch! :)
However, your patch also supported PHP code. I want to keep it as simple as possible: a blacklist of Drupal paths.

Patch attached & committed: http://drupal.org/cvs?commit=436436.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.