• Resolved bryanhiggs

    (@bryanhiggs)


    We have a Protected directory on our WordPress site that is intended to shield PDFs from SEO.
    It’s been working successfully for years. We have a file ChurchDirectory.pdf that we periodically update to the latest version (no change in filename), by uploading using FileZilla. Recently, we tried updating it, and we cannot get the WordPress site to deliver the latest file, despite having used Add From Server Reloaded to import the file.

    We also have another file, DirectoryLeadership.pdf . Strangely, we seem to be getting the latest version of that being delivered.

    Any idea what might be wrong?

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Adeel

    (@adeelraza_786hotmailcom)

    Is there a file cache on your server? Do you see the changed file contents via your FTP after uploading the file from the plugin?

    Please cross check if the contents are actually updated on the server.

    If the content is not replaced it could possibly mean that the plugin is not able to write to this protected directory

    Thread Starter bryanhiggs

    (@bryanhiggs)

    I have tried various changes to my caching plugin (disabling it; deleting the cache); no change.

    I’ll have to check whether there’s a server-based cache.

    We have checked the contents on the server using FileZilla and we see the updated file. It indeed is replaced. It’s just that we don’t get the updated file via WordPress.

    Thread Starter bryanhiggs

    (@bryanhiggs)

    We’re using Cloudflare, and I believe it does caching. I haven’t yet figured out how to disable caching for that particular folder.

    Thread Starter bryanhiggs

    (@bryanhiggs)

    I added a Cloudflare page rule that I think will bypass caching for files in the protected folder.

    It didn’t have any apparent effect. But I don’t know if there are any propagation time issues. I’m new to Cloudflare.

    Plugin Author Adeel

    (@adeelraza_786hotmailcom)

    can you try adding a query parameter after your file url.

    E.g: https;//yoururl.com/your_file?nocache=1

    If the url is being cached it should serve a fresh version of the file due to the query parameter.

    Thread Starter bryanhiggs

    (@bryanhiggs)

    Bingo! That worked!

    Thanks!

    Plugin Author Adeel

    (@adeelraza_786hotmailcom)

    Awesome happy to hear this!

    Feel free to share a review of the plugin if you are satisfied with it, many thanks!

    • This reply was modified 4 months ago by Adeel.
Viewing 7 replies - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.