File Hosting?

Website URL

christianpenguin3.cp3.ct.ws

Other Information

I am not the biggest fan of the file explorer on the cpanel for a couple of reasons. First of all when I make a update, it doesn’t show for quite a while. I want pretty much instant changes. Also I am a big fan of Github Pages, Cloudflare pages, Netlify pages, you get the point. Though my free subdomain, subdomain.cp3.ct.ws doesn’t work on those websites. What I’m wanting to know is if there is a way to not have to spend a penny, but have a better way to host my website, not through the cpanel.

The reason that your updates are not showing instantly is nothing to do with infinityfree hosting or the file manager

The issue that your web browser is caching your website and is still displaying the old website for a while before it updates it cache

You need to clear the browser cache or tell the browser to forget your website from the history and then you should see your updated website when you reload the page

6 Likes

I have done that, several times. Though it still hasn’t updated.

I have found that browsers are really stubborn at caching css and javascript files and most often clearing the cache doesn’t work

In these cases I have had to add a version number following the file name which I increase by 1 every time I update the file

This forces the browser to re-read the file and cache the updated content

Example

<link rel='stylesheet' type='text/css' href='/style.css' />

Becomes

<link rel='stylesheet' type='text/css' href='/style.css?stylecss=001' />
6 Likes

In my case is this correct>


        <link rel="stylesheet" href="blog.css=001">

I have no folders and that is the name of my css file.

use this instead

 <link rel="stylesheet" href="blog.css?blogcss=001">

and when you update the file you need to increase the number each time 002 003 etc

3 Likes

Okay. If I have already updated the file do I still keep it at one?

yeah sure
Any number will work as long as its different to what was there before

just remember to change the number if you change the css file contents

3 Likes

Okay thank you! I’ll try it real quick.

2 Likes

Working just fine. thanks.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.