Pages are not being updated.

Status
Not open for further replies.

lungdise

New Member
Messages
1
Reaction score
0
Points
1
I used to love x10Hosting. It used to work without any issues at all and it was an amazing host. However, now it is not working very well.

I have javascript files in a folder called "js" and no matter how I edit the files in the folder, they do not change on the actual site. I have tried, clearing my cache without success. The only thing that works is changing the files name, and as soon as that new name is saved, any changes to the file does nothing. I even tried deleting the files and they are still accessible which tells me that there is something wrong with this host. If I delete the file, it should bring me to a 404 error page however, it still opens the exact file. The strange thing is that i'm not having this same problem with my index file.

I hope someone can tell me a fix for this or why this is happening because it is really frustrating that I can't even edit my file because the change never shows.
 

Dead-i

x10Hosting Support Ninja
Community Support
Messages
6,084
Reaction score
368
Points
83
Hi lungdise,

We run the Varnish cache server on our hosting service, which automatically caches static files like .js files. Though this is very useful for improving site speeds, it can become an inconvenience during development. Fortunately, this is easy to disable. Please could you try adding the following line to your .htaccess file, and try again? :)
Code:
Header set Cache-Control "max-age=0, private, no-cache, no-store, must-revalidate"

Thank you,
 

bdistler

Well-Known Member
Prime Account
Messages
3,534
Reaction score
196
Points
63
x10hosting recently implemented a different web-server-software setup on their free-hosting servers - which is a combination of the Apache web server and the Varnish cache server
the cache server maybe why there is a delay before you 'see' the file - after you upload it

staff has said - to override [ Varnish cache ] try adding the following line to your [ .htaccess ] file(s)
Code:
Header set Cache-Control "max-age=0, private, no-cache, no-store, must-revalidate"
 
Status
Not open for further replies.
Top