WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm using the wp super cache plugin with cdn support turned on (aws cloudfront). I'm also using wp tables reloaded. The latter plugin includes a text file via ajax, and that file is being served by the cdn. The plugin doesn't do any sort of jsonp maneuvers, so the file hits access-control-allow-origin issues.

Before I go and mess with the plugin to pull the file correctly, does anyone know how I can restrict the cdn from storing this file, and just serve it up directly?

share|improve this question

closed as off-topic by Pieter Goosen, Johannes Pille, cybmeta, birgire, ialocin Nov 17 '14 at 17:04

This question appears to be off-topic. The users who voted to close gave this specific reason:

If this question can be reworded to fit the rules in the help center, please edit the question.

up vote 1 down vote accepted

The CDN tab of wp-supercache allows you to exclude files and folders.

[edited to add]

The field exclude if substring allows entry of a comma separated set of strings (eg .php, wp-include, specialpluginjsfilename). Any file names that match against this set of values is excluded from the CDN.

So, using the example above the following would be excluded from the CDN

  • All .php files
  • Any files or any file from any directory that has the string wp-include in it
  • Any file or any file from any directory that has the string specialpluginjsfilename in it.
share|improve this answer
    
This? skitch.com/hookedonwinter/ermt9/… -- help text wasn't very clear on the tab – hookedonwinter Jul 2 '12 at 17:56
    
Perfect, thanks. – hookedonwinter Jul 2 '12 at 18:19

Not the answer you're looking for? Browse other questions tagged or ask your own question.