• Resolved Kimber254

    (@kimber254)


    Hi, We often upload and replace audio files in the media library. Is it possible to set this plugin so the audio/media never caches?

Viewing 3 replies - 1 through 3 (of 3 total)
  • @kimber254 At the moment this is not a feature yet, however you can add the path to exclude the files from getting cached inside WP-Optimize > Cache > Advanced Settings > Exclude

    Thread Starter Kimber254

    (@kimber254)

    Hi, in the URLs to exclude from caching, I put /wp-content/uploads/* but they are still caching. Am I doing this correctly or should I add each file url and name? Thanks

    Hi @kimber254

    What Harshad refers to is page caching. /wp-content/uploads/ only contains the uploaded files, not pages generated by WordPress.

    If you wish to prevent browser caching, it will be a bit technical, and not achieved using WP-Optimize.

    You’ll have to do some manual editing of the .htaccess file, if your site is hosted on an Apache server.

    Otherwise if it’s just for the user to get the latest version, the simplest way would be to add a random query at the end of the file name, where it is inserted. I.e. my-audio-file.mp3?v=a-random-string-or-timestamp.

    So it all depends on how the audio files are handled.

    Marc

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Can this be set to never cache audio files?’ is closed to new replies.