Newbie Apache Cache Question
Newbie Apache Cache Question
(OP)
I'm not great with web servers, and I'm especially new to Apache. (The only other web server I used was Abyss in Windows.)
I copied a couple html files from my old Windows drive to the Linux Apache directory. Loaded it. Realized I needed to update a path to a JS file. When I refreshed, I saw no change. I pressed Ctrl+U to see the page source. The path had not been updated. Ok. I figured it must be pulling from cache. I pressed Ctrl+F5 to pull from disk. No change. How do I flush Apache cache?
I also wouldn't mind disabling it altogether because I don't see the point of caching on localhost.
I copied a couple html files from my old Windows drive to the Linux Apache directory. Loaded it. Realized I needed to update a path to a JS file. When I refreshed, I saw no change. I pressed Ctrl+U to see the page source. The path had not been updated. Ok. I figured it must be pulling from cache. I pressed Ctrl+F5 to pull from disk. No change. How do I flush Apache cache?
I also wouldn't mind disabling it altogether because I don't see the point of caching on localhost.
RE: Newbie Apache Cache Question
Are you sure ? I can not remember in ~20 years of using Apache I ever had caching issue.
To start with warmup questions :
Feherke.
feherke.github.io
RE: Newbie Apache Cache Question
I actually don't remember how I installed Apache. I don't remember if it just came with my distribution of Mint, or if I did "sudo apt-get install apache2" afterward.
For the directory, I just meant the main directory where I'm supposed to put my html files, which in Linux is apparently:
/var/www/html
RE: Newbie Apache Cache Question
Ok, the reason I asked was to know whether you used some spooky 3-in-1 LAMP installer, which may add obscure configurations.
Yes, that used to be, though the precise answer is whatever is specified with the DocumentRoot directive.
Tried with a Mint live CD now :
- Installed the apache2 package, made no configuration
- Created a test.html and a test.js file in /var/www/html, with test.html referring to testosterone.js
- Loaded http://localhost/test.html, the document appeared as expected
- Edited test.html to refer to test.js
- Hit Ctrl-F5, the document was reloaded with the modifications made by JavaScript visible
No idea what could be wrong there, just some dumb questions :Feherke.
feherke.github.io
RE: Newbie Apache Cache Question
RE: Newbie Apache Cache Question
Just now I changed the CSS. I changed the background color from
rgb(20, 20, 20)
to
rgb(50, 0, 10)
then I refreshed the page and saw immediately that it changed to a dark red. But the strange thing is that when I hit Ctrl+U again, the source that popped up was the old one with the previous color.