Resolved Site not updating after uploading files

Discussion in 'Free Hosting' started by calvinha, Feb 18, 2021.

  1. calvinha

    calvinha New Member

    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    I have tried uploading files to my website through directadmin and quickftp and it still doesn't change on my website. I have a free account that I am using for a school project. The page I am trying to update is: http://calvinhaworth.x10host.com/webdesign-final/
     
  2. garrettroyce

    garrettroyce Community Support Community Support

    Messages:
    5,601
    Likes Received:
    239
    Trophy Points:
    63
    Depending on your browser cache settings and server headers, you may be seeing a cached version of your website. Try visiting your website in a private window or clearing your cache. You can disable caching by creating an .htaccess file in your public_html folder with the following contents, or adding this to your existing rewrite ruleset

    Code:
    <FilesMatch "\.(css|flv|gif|htm|html|ico|jpe|jpeg|jpg|js|mp3|mp4|png|pdf|swf|txt)$">
    <IfModule mod_expires.c>
    ExpiresActive Off
    </IfModule>
    <IfModule mod_headers.c>
    FileETag None
    Header unset ETag
    Header unset Pragma
    Header unset Cache-Control
    Header unset Last-Modified
    Header set Pragma "no-cache"
    Header set Cache-Control "max-age=0, no-cache, no-store, must-revalidate"
    Header set Expires "Thu, 1 Jan 1970 00:00:00 GMT"
    </IfModule>
    </FilesMatch>
    
     
    • Winner Winner x 1
  3. spacresx

    spacresx Community Advocate Community Support

    Messages:
    1,058
    Likes Received:
    74
    Trophy Points:
    48
    @ calvinha
    Are you using an FTP client like filezilla. ??
    or are you using the upload option in DirectAdmin ??

    Do you have a .htaccess file in public_html ??
     
  4. calvinha

    calvinha New Member

    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Thank you so much! Opening the webpage in a private window does fix the issue so I'll make sure to disable caching.
     
  5. calvinha

    calvinha New Member

    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    I tried both but garretroyce helped me fix it because it was an issue with loading a cached version of the site
     

Share This Page