CDN: URLs not rewritten in the native WP audio playlist
-
The CDN feature of W3TC does not rewrite the URLs of audio files in native WP playlists.
Sorry, I can’t give you the site URL cause it’s still in dev. But the issue is easily understandable without it – please see below.
Details:
1) I turned on the CDN of the “Amazon S3-compatible” type, and connected my S3-compatible storage to the site. The connection works well, it successfully offloads whatever I tell it to offload – which is mostly audiofiles from the “Uploads” folder.
2) If I insert a native WP audio player with a single audiofile in a post, the file’s URL is rewritten to the storage URL and the file is served from that storage URL. (I.e. everything’s fine.)
3) BUT if I insert a native WP audio playlist (selecting several audio files in the Media Library) in a post, then the URLs of the audio are not rewritten. The audio is served from my main hosting. Which is not OK.(Meanwhile, the W3TC Debug field in the source of the post with the playlist says that all the audio URLs have been replaced with the respective S3-storage URLs. Which is obviously not so.)
This rewriting behaviour doesn’t depend on the way I add the native playlist: either via a classic post editor ( => “Add Media”) or by a shortcode in Gutenberg.
This doesn’t depend on other plugins that might hinder W3TC.
This doesn’t depend on the theme I use. (But this is logical since the bug is somewhere on the backend.)The problem must be somewhere in the process of providing audio file URLs from the Media Library to the native playlist.
Could it be somewhere on the side of W3TC?Thanks.
The topic ‘CDN: URLs not rewritten in the native WP audio playlist’ is closed to new replies.