Linux - Server This forum is for the discussion of Linux Software used in a server related context. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
01-21-2011, 02:40 PM
|
#1
|
Member
Registered: Jan 2010
Distribution: centOS
Posts: 404
Rep:
|
perl execution
I think I finally figured out why, when running a test script from my browser (IE), repetitively, it would write once but not again when I requested it again. It would reload the intended response to the user, but wouldn't append the text file. Finally I tried running the script from another tab in my browser and it ran properly.
Was it loading the reply page to the user from my system's cache and not running the script? If this is the case why doesn't it do the same on a new tab?
Last edited by bluegospel; 01-21-2011 at 02:43 PM.
Reason: extend inquiry
|
|
|
01-23-2011, 11:50 AM
|
#2
|
Member
Registered: Sep 2009
Distribution: Arch Linux
Posts: 40
Rep:
|
I'm not sure how IE works, I try to avoid it, maybe if you try to manually clear the cache before each reload? But can you add something to your server-side script that must change every time it is executed - like a timestamp. Possibly you could also specify a timeout in the headers of your response that would prevent the response from being cached.
Sorry, I don't know enough about IE or CGI perl programming to be more specific but that's how I would proceed.
|
|
1 members found this post helpful.
|
01-23-2011, 07:58 PM
|
#3
|
Member
Registered: Jul 2008
Location: Orange County
Distribution: Ubuntu/Debian, CentOS, RHEL, FreeBSD, OS X
Posts: 75
Rep:
|
Do you get the same results if you use a different browser besides IE?
I wonder how the Apache logs the requests. Can you post the logs?
I'm not familiar with IE, but I find it hard to believe that its a caching issue that's preventing your perl script to append the text file.
|
|
|
01-26-2011, 06:44 AM
|
#4
|
Member
Registered: May 2006
Location: Bayern, Germany
Distribution: Many
Posts: 224
Rep:
|
It seems related to IE. Have you tried with another browser ?
Maybe you need to add a "NO-CACHE" tag to your page ?
|
|
1 members found this post helpful.
|
01-26-2011, 03:12 PM
|
#5
|
Member
Registered: Jan 2010
Distribution: centOS
Posts: 404
Original Poster
Rep:
|
Yes, the script succeeds in writing to the file in firefox, failing only in IE. It's not really an issue, as the script is a learning tool only, but I'm curious to know what's going on with IE. Which logs did you want to see Alpha? I know this is a very basic question schultzer, but if I do manually clear my browser's history, will that also clear my "bookmarks?"
|
|
|
01-27-2011, 11:18 AM
|
#6
|
Member
Registered: Sep 2009
Distribution: Arch Linux
Posts: 40
Rep:
|
Quote:
Originally Posted by bluegospel
I know this is a very basic question schultzer, but if I do manually clear my browser's history, will that also clear my "bookmarks?"
|
If by bookmarks you mean what IE calls Favourites then the answer is no, you can clear the cache, history, etc. without affecting your Favourites. Probably what you want to clear is the Temporary Internet Files and possibly the Cookies. Start with the Temporary Internet Files since clearing the Cookies will also log you out of every web site where you checked the Remember Me option the last time you logged in.
|
|
1 members found this post helpful.
|
01-27-2011, 11:18 AM
|
#7
|
Member
Registered: Sep 2009
Distribution: Arch Linux
Posts: 40
Rep:
|
Clearing IE's cache
Quote:
Originally Posted by bluegospel
I know this is a very basic question schultzer, but if I do manually clear my browser's history, will that also clear my "bookmarks?"
|
If by bookmarks you mean what IE calls Favourites then the answer is no, you can clear the cache, history, etc. without affecting your Favourites. Probably what you want to clear is the Temporary Internet Files and possibly the Cookies. Start with the Temporary Internet Files since clearing the Cookies will also log you out of every web site where you checked the Remember Me option the last time you logged in.
|
|
|
01-27-2011, 01:44 PM
|
#8
|
Member
Registered: Jan 2010
Distribution: centOS
Posts: 404
Original Poster
Rep:
|
Thanks Schultzer.
FYI, that's exactly what it was. If I clear my temporary Internet files after I submit the script request, the next time I submit, it writes the file. If I don't clear it out, it doesn't write. So IE must store the first dynamic response from your script, and when you request the script again, load the stale response from cache without requesting the script. Right?
|
|
|
01-27-2011, 09:46 PM
|
#9
|
Member
Registered: Sep 2009
Distribution: Arch Linux
Posts: 40
Rep:
|
Too much for me
Quote:
Originally Posted by bluegospel
IE must store the first dynamic response from your script, and when you request the script again, load the stale response from cache without requesting the script.
|
I guess it's up to the browser how it wants to handle the results of scripts; although you can probably play with the headers of your response to indicate what you want browsers to do. That's way out of my league, but I'm sure the info's out there on web somewhere. Search for HTTP headers.
(BTW, don't forget to indicate a post is helpful so the author's gets some rep points)
|
|
1 members found this post helpful.
|
All times are GMT -5. The time now is 02:21 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|