Resolved Site not updating after uploading files

garrettroyce

Community Support
Community Support
Messages
5,611
Reaction score
249
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>
 

spacresx

Community Advocate
Community Support
Messages
2,182
Reaction score
195
Points
63
@ 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 ??
 

calvinha

New Member
Messages
3
Reaction score
0
Points
1
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>

Thank you so much! Opening the webpage in a private window does fix the issue so I'll make sure to disable caching.
 

calvinha

New Member
Messages
3
Reaction score
0
Points
1
@ 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 ??

I tried both but garretroyce helped me fix it because it was an issue with loading a cached version of the site
 
Top