• Have setup CDN on S3/Cloudfront platform. Also, using Super Cache.

    Can upload media and with CDN on in SuperCache images served from CDN so connection with cdn appears ok.

    But with or without cloudfront url activated in Autoptimize no css or js served. Source shows cloudfront url for Autoptimize assets.

    Is there any other settings need entered or else done to have Autoptimize files uploaded and served from cdn? Should it happen automatically, or do they have to be uploaded manually in first instance?

    Thanks for any insights.

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

    (@futtta)

    AO does not push files to a CDN @robiw, it assumes the files are on the CDN (using “pull cdn”, typically), so you’d have to ensure the autoptimized files are mirrored on S3/ Cloudfront somehow.

    hope this clarifies,
    frank

    Thread Starter RobiW

    (@robiw)

    Thanks for answering the question so quickly. Now just have to figure out how to mirror them when any changes made.

    regards
    Rob

    Plugin Author Frank Goossens

    (@futtta)

    well, you can tell AO to store the cache elsewhere (see FAQ), so assuming you have something which monitors/ mirrors wp-content/uploads (but not based on an upload action per se), then changing AO’s cache-path to e.g. wp-content/uploads/aocache/ could work?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Serving css/js files from Cloudfront CDN’ is closed to new replies.