Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.