Closed (fixed)
Project:
CDN
Version:
6.x-2.0-rc1
Component:
Module
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
12 Oct 2010 at 19:20 UTC
Updated:
29 Oct 2010 at 08:50 UTC
Jump to comment: Most recent file
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.
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | 939640-6.patch | 9.25 KB | wim leers |
| #4 | cdn.visibility.patch.rc1_.txt | 5.4 KB | sillygwailo |
| #4 | cdn.visibility.patch.dev_.txt | 5.34 KB | sillygwailo |
Comments
Comment #1
wim leersMakes sense. Strange actually, that this hasn't been requested before :)
Will be added in RC2.
Comment #2
sillygwailoDoes depending on Visibility API make sense for this case?
Comment #3
wim leersIt does, but I don't want to introduce another dependency. I will use http://api.drupal.org/api/function/drupal_match_path for this.
Comment #4
sillygwailoI 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.
Comment #5
sillygwailoComment #6
wim leersThanks 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.