• theyuv

    (@theyuv)


    Hello,

    I would like to specify a CloudFront CDN in the AO settings.
    However, for my CloudFront CDN, I would like to specify a specific path for the origin so that the CDN doesn’t store all of my files (eg: [Wordpress blog root]/wp-content/cache/autoptimize).

    If this is the case, the correct url for fetching the file would be relative to the path set (eg: [CDN root]/css/autoptimize.css).

    What url then would I enter into the Autoptimize settings for this to work properly?

    Thank you.

Viewing 1 replies (of 1 total)
  • Plugin Author Frank Goossens

    (@futtta)

    That’s not possible out of the box theyuv, as AO expects the “layout” of the CDN and the origin server to be the same (so /wp-content/cache/autoptimize/ and /wp-content/themes/yourttheme/ and wp-content/plugins) for both.

    You might however be able to work around this using the API, as described in this GitHub issue.

    hope this clarifies,
    frank

Viewing 1 replies (of 1 total)
  • The topic ‘CloudFront CDN origin with path’ is closed to new replies.