twelve-of-code-official / website

The source code for the Twelve of Code website
https://mesure.x10.mx/twelve-of-code
GNU General Public License v3.0
0 stars 0 forks source link

User needs to clear cache whenever files are referenced #13

Closed Mesure73L closed 9 months ago

Mesure73L commented 9 months ago

Just thought I'd put this in issues, but every time any referenced file is edited the user is required to clear cache.

Mesure73L commented 9 months ago

@BeepBot99 you can self assign this if you want

BeepBot99 commented 9 months ago

OK, I'll work on it.

Mesure73L commented 9 months ago

Ok, thanks

Mesure73L commented 9 months ago

If there's a way to make it automatic that would be nice (assuming you're using ?n=1)

BeepBot99 commented 9 months ago

Since I am doing settings, can you please do this? If not, it's fine though.

Mesure73L commented 9 months ago

I'll try

BeepBot99 commented 9 months ago

OK, thank you!

Mesure73L commented 9 months ago

I think it's fixed, it just needs testing

BeepBot99 commented 9 months ago

What did you do to fix it?

BeepBot99 commented 9 months ago

Oh I see. That will not work. .htaccess only works for Apache web servers.

BeepBot99 commented 9 months ago

I would not disable caching. It can have bad long term effects. In Chrome and Edge, you can go to Developer Tools --> Network --> Disable Caching, which will disable caching for a single website. However, I know that you are not able to access developer tools at school. So, you can disable caching now, but I would highly encourage that you enable it when your website is done. Then, every time you change the CSS or JS, just manually increment the ?n= parameter by 1. That way, the browser will only un-cache when there is an update to the website.

BeepBot99 commented 9 months ago

Oh I see. That will not work. .htaccess only works for Apache web servers.

Sorry about that, I was wrong. .htaccess does only work in Apache servers, but I did not know that x10hosting used Apache. So, it will (probably) work, but I would still highly encourage that you remove it after website development is finished.

Mesure73L commented 9 months ago

Oh I see. That will not work. .htaccess only works for Apache web servers.

I believe it is Apache

Mesure73L commented 9 months ago

oh I didnt see your other messages

Mesure73L commented 9 months ago

Oh I see. That will not work. .htaccess only works for Apache web servers.

Sorry about that, I was wrong. .htaccess does only work in Apache servers, but I did not know that x10hosting used Apache. So, it will (probably) work, but I would still highly encourage that you remove it after website development is finished.

I'll disable it after the first full release

Mesure73L commented 9 months ago

Fixed, the ?n=... parameter is already in all of the files, but for now it won't cache anything for the user