I am trying to update a web site. There are new images which are uploaded to it. The web server is Apache. The web pages are written in PHP.
But I noticed that the new images are not being loaded when the site's URL is accessed from my Windows 10 computer (and also from my Android phone). Instead, the old images are accessed, but not always. Even if I rename the images on the web server the old ones are loaded.
Even if I create a new web page which accesses one of the new jpgs, the old ones are loaded. (Like, say, mywebpage.php and mywebpage-x.php).
So mywebpage-x.php should try to load image5001.jpg but instead loads image500.jpg from mywebpage.php.
Where would I look for what I'm doing wrong?
Related
I am working on a web site that I worked heavily on a couple of years ago but only maintained since. It was recently migrated to another server. The new server uses ZendFramework version 1.12.20 on Apache (httpd=2.4.6-88.el7.x86_64).
There seems to be a weird bug where instead of using the URL of an image, it sends data:image content. Unfortunately the data:image is of an old image icon instead of the replacement icon. If I go directly to the URL of the image, it also still shows the old image. So it seems like a caching problem.
I've tried clearing the web browser cache and restarting the web server. There are no image files in /usr/local/zend/library/Zend/Cache and /usr/share/php/Zend/Cache. What will clear the Zend or Apache cache?
On a live IIS web server, is it possible to update the /View/xxx.cshtml razor files and have those changes reflected without rebuilding and reuploading server?
Sure - just open the file and update it or FTP a new version to the server. The views are not compiled into the DLL (unless you are using one of those Razor View Compiler add-ins). As a result, they can be modified on the fly like any other content resource (CSS, JS, images, etc)
I installed an SSL Certificate which required me to switch all HTTP Links over to HTTPs links. I did this by downloading all site files (including the database) and did a find/replace, thus replacing all http:// with https:// then I uploaded the new site files (and .sql file) to the server. And everything appeared to be working. Except that .png images wont load in any browser.
I can't even pull up the image by typing in the direct link in the address bar (with or without the https). Previously the images worked fine, they now just show the red X.
Any ideas on what's going on and how can I fix it?
The site is built with Joomla 2.5. You can see it here: https://www.detourjournal.com/ (Note the two .png images in the footer that are not loading)
It's not your Joomla! setup, for starters it doesn't appear to be Joomla! redirecting calls to SSL in normal pages and it doesn't affect direct file URL for images this way.
You appear to have configured your server to force https (possibly via .htaccess).
It's also not specific to PNG files as your logo, /images/stories/logo2.png is being served without a problem. The same goes for the PNG's in VirtueMart e.g. the close label.
Looking at the header for those images the sizes don't match what is being returned... so it's most likely corrupt images cause Apache to bork.
I have apache web server and I have a django site on it.
The site use a lot of images (~50) png file.
When I refresh the page it is very slow until it come back again.
I tried to check with google developer tools network view and saw that my site have connection latency when I requesting the images..
I attached the screenshot - it is the top of the list and go on until the end..
Do you have any idea to reduce the delay?
http://2seat.co.il/static/timeline.png
If your images dont change often try using cache control headers so that your browser doesnt get the images from server every time you reload a page
I have created a web application in that application i have added two folder. one is admin folder and under admin i have added a upload folder. In upload folder i have three different audio's. And also i have imported DLL for Windows media player. Through this media player im able to play the audios in local host.
By giving Direct path like MediaPlayer1.Filename="C:\User\sam\waka.mp3"
But when i host the website im getting problem the page is getting refreshed but the audio is not getting played.
I have tried this path Server.Mappath(".\.\upload\waka.mp3")
and Server.Mappath("~\admin\upload\waka.mp3)
the above both paths are not working when i host the website please reply.
It's still a bit unclear, but it sounds like there's some kind of audio player in your website (an ActiveX control or something?) that's trying to reference a path on the server as though it were on the client that's loading the page. Naturally, this will work on your development machine because the client and the server are the same thing.
What's actually being rendered on the client side? What happens if you reference the audio file by its URL rather than its file system path?
Or are you trying to do something different than what I describe? Are you actually trying to play the audio on the server when the client accesses the site?