Website stuck caching old files - html

I am working on a website, but whenever I upload a new file to my hosting provider (BlueHost), I cannot get the new version of the file to load in any browser or any PC that I have. This happens with both images and html files. I have tried loading the updated page on multiple computers on my network, but they all show the old version of the files. The new files will load on my phone, but only on 3g. I tried connecting through an Open VPN connection and this did not fix the issue, I also have cleared the cache in chrome on the computer. Any idea what could be going on?

Check your .htaccess file. It might have server caching set up.

Related

How to test HTML/CSS files from PC on mobile device

Here's the situation:
I have a folder on my PC containing a single HTML file, a CSS file, and an images folder. I've been testing it through the browser on my PC, but I wanted to run the same files off my Android to test on mobile. I zipped the entire folder, emailed it to myself, and then downloaded it and unzipped it on my Android. When I click on the HTML file I can open the page on the mobile browser, but it appears that the CSS file is not loading at all, despite all of the files still being in the same folder together on my phone. Is there an obvious problem I'm missing?
If the issue is coming from your phone and not the file, try to upload it on a free web host, like byethost, and open it directly trought internet.
You'll need to get your files into a web server.
If you don't have an external site you can use, you can still do it with a local web server. Depending on your OS, options for a local web server include IIS, Apache (via XAMPP on Windows), or even debug mode from an IDE like Visual Studio.
Next, get a tunnelling service like ngrok or localtunnel. When you run it, it will give you a temporary external website address that redirects to your local web server. You can then use your mobile device to test.

How to set csv file to open in the browser instead of download on Site Ground account

I have a simple code that save logs in a 'csv' file on the server.
When I navigate to from the browser to the folder where the file is saved, clicking the file download it instead of opening the file for view in the browser.
I have another site using the same code exactly on the same server, and clicking file from it, open the file for view in the browser.
I use the same browser for both sites, so it is not related to browser settings.
I've tried to change the file privileges, but it didn't help.
This site was originally with a different host, and I thought that moving it to the same host will solve it, but it didn't.
I've tried to talk with the support of the hosting provider, but they say that a developer should handle it.
Replacing the file ending to 'cvs' solved the problem, and opened the file in the browser without any other settings change.

How can I force Chrome to open index.html file while browsing a local directory?

I am trying to implement an internal website on my company's shared hard drive.
Everything is going well except that I would like Chrome to open index.html file by default on root folder, exactly how it would do it on a remote web server. Any ideas, folks ?
What we do have as for now :
You have to run a webserver. By default, chrome will not serve any file, you have to open them on chrome properly.
So, since you're using WordPress, I suggest you to run xampp, or anything similar. To run on internal local network you have to configure windows to allow incoming connections from your machine IP address

How to access local directory files using WAMP server?

I am new in html programing and actually I am self-taught.
Recently I found a piece of software that let me pre-render videos to 60 fps.
I thought why not share the results with the world. So i read about how to code in html5. So I created a very simple looking site and everything worked perfectly when I start the html5 file (Videos are playing). So I read that Wamp Server will give me opportunity to share this with the rest of the World.
But everytime I start Wamp and try to view the page neither the videos or tumbnails of the videos load. Everything else like margins placement of the players text works but Wamp somehow blocks every content which is loaded in the html5 file like this:
"D:/Downloads/Pixar Short Film Collection........ ".
I repeat html5 works perfect if I start the index file from any browser but loaded through Wamp it can't load anything.
In IE10 under the videos is showing that is being blocked but in Chrome just blank.
It works when I make the html5 file to load the video from the directory "www", but this is a problem for me because it is going to be a video library site. My "C:" drive will be filled so if someone knows how to fix that it will be awesome.
PS(One week ago I had no such problem but it suddenly appeared. Since then I've been installing and uninstalling Wamp, but no luck)
And another thing, no matter what I did, following every tutorial for installing Wamp configuring my router/modem for 80 port and IP forwarding nothing seems to work even in my local network (typed IP in Chrome) I can't open the web page. Yet everything works, Wamp is green, and from the PC where Wamp is installed I can open the page, but in no other PC.
(I have prefect connection between the two PC's because from the one I can play games on the other without noticeable lag, but Wamp server is like a WALL)
PS
If you are going to instruct me to unblock port 80 in my FireWall I have already done this on both PC's I am running Win8 in both machines!
Thanks in advance!
This is nothing to do with HTML5 it is an Apache configuration issue.
From what you say I assume you have been double clicking on the index file from explorer (filemanager) while you develop and test your site. BAD IDEA.
Now you are using the browser to server the file via Apache ( it does not do this when you doubleclick on filenames in explorer ) you need to tell Apache that it has access to your video library which you placed on the D:\ drive.
To do this you need to configure Apache ( https.conf ) to know about your video library and be allowed to access it. To do this you need an Alias.
Now I have no idea what your setup is but lets assume you have created your site in the wamp folder structure C:\wamp\www\ or C:\wamp\www\sitename
You will need to amend your https.conf file adding something like this to identify the video library and assign access privilages to it.
This can go at the bottom of the httpd.conf file after the Include "c:/wamp/alias/*" line
Alias /videolibrary "D:/Downloads/Pixar Short Film Collection........ "
<Directory "D:/Downloads/Pixar Short Film Collection........ ">
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride all
Order Allow,Deny
Allow from all
</Directory>
You can then address the individual videos in the library from your html as
/videolibrary/video1.xxx
using the alias videolibrary setup above and not
"D:/Downloads/Pixar Short Film Collection........ ".
you can access localhost files using wamp via C:/wamp/www/webitefolder/

Appcache manifest downloads all files but still unable to access offline unless they have been accessed online

I have successfully created an appcache manifest that is downloading all of the website content. I have checked this through chrome dev and it's all working.
The issue I am having now is that even although the entire website has been cached, I am unable to access the cached pages when offline, unless I had accessed them online.
I am using Apache and accessing the website via an iPad using safari browser.
I have an idea that this may be due to the server not allowing access to cached pages unless they had been accessed online as some kind of security measure.
Any ideas?
if your files are in PHP or ASP this will not work.
It need to be JavaScript or other files that can be run localy like Image, HTML.