Skip to content

Conversation

@stefan-77
Copy link
Contributor

@stefan-77 stefan-77 commented Aug 21, 2025

Problem:

I added a border to the layout of html-tables in the index.css.
But the layout in the wiki on index.php did NOT change.

Cause of the problem:

The browser doesn't cache the index.php because it is a dynamic file, but it does cache the index.css so changes by the user are NOT immediately applied to the wiki.

Solution:

I added a timestamp as a parameter to the css-link in the config.php:

This gives the link in the index.php a pseudo prameter version=timestamp and so the browser will also reload the css-file if the index.php is reloaded by the user.

Example link in index.php:

<link type="text/css" rel="stylesheet" href="/index.css?version=1755753029" />

Request to Steven:

Please merge into the main version of w2wiki

P.S. The /img folder was still missing. I added it, so if the repository is downloaded and deployed as a zip file to a server the folder is already there, making it easier for new users to find the place to put images.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant