WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Client cant see the Updated dynamic content (2 posts)

  1. Nasir Zia
    Member
    Posted 1 year ago #

    hi,
    I have came across an issue... whenever I upload new content to the site.. and i send the link to the client.. He can not view the changes instead what he see is the previously updated content. Looks like there is some caching issue.. but i have never seen dynamic content being cached.
    Even I have to clear my cache on Safari to view the dynamic changes..
    I am using a theme Village . Not sure if that is the theme issue.. Is there any solution to this which i may try rather than waiting for the Theme developer to respond?

    Thanks,

  2. Nasir Zia
    Member
    Posted 1 year ago #

    UPDATE: I use the following code to make sure that the updated content is loaded everytime the page load.

    <?php
    header('Expires: Sat, 26 Jul 1997 05:00:00 GMT');
    header('Cache-Control: no-store, no-cache, must-revalidate');
    header('Cache-Control: pre-check=0, post-check=0, max-age=0');
    header ('Pragma: no-cache');
    ?>

    But will it Re-load everything including Js and css files?? If that is the case, then i shouldn't be using this technique?
    Thanks,
    Nasir

    [ Please do not bump, it's not permitted here. ]

Topic Closed

This topic has been closed to new replies.

About this Topic