Caching Images
I've had some periodic problems on certain (intranet)servers where IIS seems
to be caching thing in an unexpected way, or is server cached pages where
new content is expected.
The first situation is where we have a standard Top + Left + Content
framset; the left frame contains a menu which shows standard options - when
the user logs in, extra menu options are available to them, depending on
their priveleges. The menu is generated from a DB in ASP, and when the user
logs in, Javascript is used to reload the page in the left frame - eg.
re-generate menu based on logged-in user.
This used to work on all servers, but at some point in time I found that
people were logging in but were stuck with the standard menu. If we
right-clicked in the menu and chose refresh, often the correct (eg expanded)
menu would be shown.
I'm not sure where the problem is IIS or could be controlled in ASP...
The second problem is on my development machine; when I browse to my
development copy of the intranet, I dont get the icons for each menu item.
However, when I browse to the live Intranet system, the correct graphics are
shown.....
View Replies
ADVERTISEMENT
I am precaching images from my database and I am using javascript to do this.
Now how do I assign my images from the database into an Array.
I believe that I am on the right track with this, just not positive about the variables I am assigning.
var Images = new Array()
for (i=0; i < document.PrtImage.length; i++){
Images[i] = PrtImage;
}
PrtImage is the name of the field the images are stored in.
View Replies
View Related
In my application I have an image that is used numerous (up to 200) times on the same web page. Some of the time the image is loaded once from the web server and the page quickly loads. Sometimes however, the page loads the image from the web server for every instance of the image. Code:
View Replies
View Related
My page have background image,on that image have more images and text. My problem is whenever resize browser that images are not resized and also not moved correct place .(i.e look not like before alignment).I want to do everything in dyanamic....
View Replies
View Related
ASP Caching is not happening even i enable ASP disk
cache under websites
properties,Homedirectory,Configuration,cache options..
I have given the Full Control Permissions to IIS_WPG &
Administrator to that directory...
I am getting that cache options under
websites only not individual sites.Can i know the reason
for this
View Replies
View Related
Just recently we have encountered a weird problem with our
webserver...running IIS 5 and W2000 SP4
When testing an ASP page, if you get an error of some sort in your browser,
when you go into the code and fix the problem, save the changes, when you
refresh the page, the error stays there, even though the code is correct.
The problem is not fixed until you rename the page, and the open it in your
browser to work fine??
View Replies
View Related
We have a website that reads data from Oracle and creates an XML file. Then
the site uses that file to access the info faster. On IIS5 we have no
problems, but on IIS6 we seem to have some caching issuses. This deals with
the Worker Processes. By default, there is only 1 Worker Process that gets
recycled after 1700 minutes or so. The problem is, that we will select some
data from the screen, which opens up another window to update the info. We
walk through the update process and change some data and it updates the page
fine. We can even check the XML file and it is changed, but if you choose to
go back into that data, the dropdowns will reflect whatever was initially in
the XML not the changes. If I increase the number of Worker Processes and
shorten their recycle time, this doesn't seem to be a problem, but for every
request I am generating a 25M file on the server that eventually gets
recycled. I don't want to load up the memory with useless files, but I want
our application to reflect the correct data. I really need to do this without
affecting any other possible web apps that may be on the box.
View Replies
View Related
Never had this problem before, but my SSI's in an ASP page are caching. I don't think ASP has anything to do with it mind you. I think it's a server issue (I've never really used this hosting company before).
Is there any way (ASP or otherwise) that anyone knows of stopping a web server caching your SSI's. It's VERY annoying!
View Replies
View Related
We have an IIS cluster running an ASP website. We installed the patch listed under Q239703 that allows IIS to recognize script updates and appriately not cache those ASP pages. However, since we made this change, any office documents that a user tries to download exhibit the problem listed in Q316431. We do not use any of the caching commands listed in this article (Pragma: no-cache OR
Cache-control: no-cache,max-age=0,must-revalidate). In fact we do not have anything set in the code at all with regards to caching, and the only this i can come up with is the change we made from Q239703, which is needed to stop IIS from caching ASP based pages
View Replies
View Related
We are attempting to cache asp web pages in our isa server from the local county property appraiser web site to speed up access, with a 60 minute TTL (time to live).
This doesn't seem to be working - at least the pages aren't coming up any faster. Is there anything in asp that could be preventing the pages from being cached locally?
View Replies
View Related
What is the best way to cache images, and stylesheets on an asp site? I currently use a .asp extension on all my pages because I use include statements to keep certain parts of my layout the same(menu, logo, footer). I have read that asp doesn't cache pages by default, and that they are processed everytime on the server. This can eat bandwidth up pretty fast.
There also seems to be a few ways to cache a page (response.expires, cache-control, public, using meta tags, and a few more).
View Replies
View Related
I have a page were data can be filtered using up to 4 listboxes. Once
someone does a filter, those parameters are saved so when they come back
to the page on a subsequent visit, the listboxes are filled for them.
There is a slight performance issue if all listboxes are set to 'All'.
Can the Cache Object be used for data that is static but filtered? If
so, how? The data that is being filtered is updated once a month and I
am not using the .NET platform.
View Replies
View Related
Im having a problem that some users of this Admin System Ive built have been getting. I think the problem is caching, users arent seeing the updated version. Is there anyway to force the browser to get a fresh copy of the page everytime?
View Replies
View Related
I have an application which allows users to check in/check out XML files from an MSSQL database. When checked out, the XML file resides on a network drive. This allows users to edit the file. When checked in, the XML file resides in the database etc..
Anyway - the process works fine, but after a couple of hours usage the checkin method stops working. No matter what you change in the XML file it does not update.
Checkin method:
Create FileSystemObject (FSO)
Retrieve 'Checked Out' File from the network drive using the FSO
Retrieve contents of file using ReadAll
Update database with new content
Kill FSO
THe FSO.ReadAll returns a cached/old version of the XML file. I can open the file in notepad and I can seee the changes made, but when I do a ReadAll on the file using FSO the change is not there...
The only way around this is to re-boot my PC. Is it possible the memory allocated to my application fills up and cannot create new instances? Anyone else experienced anything like this? The application is an ASP based Web Application and runs through IIS5.
View Replies
View Related
I have 2 asp pages, the first displays a drop down which it's source is from a db, user picks a value, submits to the next page. Currently if the user hits back picks a different value and submits again, the same original value is submitted again, not the newly select value...
I see lots of things talking about caching, wondering if there is something I can do so if the user goes back, using their back button, that if they select the new value and resubmit, that the new value is used and not the original value, I may have said that in a very long winded way, just wanted to be clear..
View Replies
View Related
I'm developing a website, using ASP VBScript, and I'm using
Response.ServerVariable("cert_subject") to get information about the client's
certificate (smart card). But this variable is cached, the user can take the
smart card out, and the previous data is still there.
It's only until you
close the browser and reopen IE that it flushes it. Does anyone know of a way
to flush that particular variable, or force IE to relook at the cert each
time of the response call?
View Replies
View Related
I have, at the top of all my scripts,
response.expires=0
which should prevent any caching of pages. All the pages contain dynamic db driven data, so I need to ensure none of the pages are cached.
One of the users has found that pages aren't updating when she navigates to them. It only happens on her computer. If you refresh the page manually, the data updates.If she logs in using a different machine, it all works fine.
She's using IE7. Does anyone who of any setting on a computer that might override the response.expires setting?
View Replies
View Related
We are having a problem with a xmlhttpRequest request returning a cached version of the request - the code we are using is inserted below. Has anyone else had this problem before - or have any ideas on what we may be doing incorrectly.
xmlhttpRequest : function(url)
{
var mainPageURL = document.location.href.split("/");
var xmlhttp = new ActiveXObject("MSXML2.XMLHTTP.3.0");
try
{
var vURL = mainPageURL[0] + "//" + mainPageURL[2] + "/" +
mainPageURL[3] + "/" + url;
xmlhttp.open("GET", vURL, false);
xmlhttp.send();
if (xmlhttp.statustext != "OK")
{
alert("Failed to execute URL " + vURL + ": " +
xmlhttp.statusText);
return "";
}
else
return xmlhttp.responseText;
}
finally
{
xmlhttp = null;
}
},
--
jmt
View Replies
View Related
I found this article and it seems like a good idea to put data into Application variable that doesn't change often.Caching records in memory I am new to ASP and MS Access, would like to know from you folks whether this is a good practice to, say displaying Categories and Country data of an e-commerce site using this method?
View Replies
View Related
i want to info about iis caching and a special one when i get the a site with xml http it is caching by iis ... what is the refresh period and data amount of this caching...
could anyone give me a info or url to take more info...
View Replies
View Related
Is there a way to cache a query on the server's memory for a certian amount of time?
View Replies
View Related
My problem is as follows... I wrote an ASP application that pulls data from SQL based on the query the user specified.
I am using the response.contenttype="applicaiton/x-msexcel" to display the data in Excel via IE. But it seems the content is cached that is the displayed data is independent of the query specified, unless i close down the browser.
View Replies
View Related
I have a dynamic website system that my clients use to change their webpage
conten online. Sometimes the new change isn't visible right away to a
browser. I have the following in every webpage's <HEAD> section:
<META HTTP-EQUIV="EXPIRES" CONTENT="0">
which on previous investigation was supposed to be a solution for this. All
I want is a definitive solution so that when a browser makes a call to my
server for one of my pages, everything along the line that has a cached copy
of the page is going to say "Aha! The browser wants the latest version of
this page! I'm going to pass this request up the line to see if their is a
more recent version instead of sending it my cached copy". (Yup, that is how
browsers and ISPs speak to each other). What do I have to do to my webpages
to ensure this happens? At the same time, I don't want it to be getting the
page all the way from the server if the page content hasn't changed. In
other words, I just want the cacheing to work properly!
Sorry if this isn't an explicit ASP question but no one in the HTML groups
I've tried has any idea what I'm talking about and I'm hoping that those who
frequent this room will have a better handle on the whole
client/server/caching problem and the solution!
View Replies
View Related
I have an application that I'm developing that generates a PDF from an HTML
page. The quotation.htm page is generated manually, but will be automated in
the finished version. It is processed in PDFTest.asp using an off-the-shelf
PDF component, which creates Test.pdf.
I am having problems with caching: if I change the content of the html page,
it is generally not being reflected in the finished PDF.
I've modified the HTTP Headers (in IIS) to 'Expire Immediately' for the
whole Virtual Directory; I've include 'Response.Expires = 0' in PDFTest.asp;
and I've even converted the original HTML file into ASP (with
Response.Expires = 0 add in). Code:
View Replies
View Related
I restored my development database of the company and made it up-to-date with production database. Development database was pretty outdated and there was error messages mentioned below coming in to our development website on the pages when it was trying to grab data from the database (because of the outdated development database from which its trying to find the data).
Microsoft VBScript runtime error '800a000d'
Type mismatch: 'strEndDate'
Now after I restored this development database, the development website is working fine and there are no error messages. But it�s only my home computer (I work remotely from home) that is still suffering from the above error message whenever I go to view any page involving database interaction.
I asked 3 other people and they can access development website fine and they can also view all the records perfectly whenever there is database interaction. According to them there is caching or another setting issue with my home computer.
I use windows 2000. I already tried deleting all the temeroary internet files, history etc.I also changed the setting so that my comptuer doesn't store more than 200 MB cache in memory but that didn't help.Is there some setting i need to change?
View Replies
View Related
I feel like an idiot but I can't seem to figure out which setting I need to
change to stop a bad page from caching.
- I modified the search.aspx page in our Sharepoint 2003 portal product
running on Windows 2003 IIS6.0 and basically screwed it up.
- I made a backup of the page before I made the modification which I then
restored to make it back to normal (search.aspx is now back to the original)
I can't get the good page to display on my computer. Everyone else sees the
good page.
Things I tried:
On my machine:
- Deleting my temp internet pages
- Rebooting
On the IIS server:
- Rebooting
- Restarting IIS
- Playing with the content expires settings
View Replies
View Related
What would be the norm for caching asp pages with an ec-commerce site. What im after is should i set the cach directives to different types for the different types of pages in an asp /sql application.
Ie, Dynamic Reports, data entry pages, static menu pages. etc. Does anyone have any thoughts or guidlines in this ?.
View Replies
View Related
ASP Caching is not happening even i enable ASP disk cache under websites
properties,Homedirectory,Configuration,cache options. I have given the Full Control Permissions to IIS_WPG & Administrator to that directory.
I am getting that cache options under websites only not individual sites.
View Replies
View Related
Every time my page loads in IE6 the navigation reloads. How do I stop this happening? It works fine in FireFox.
I do have <% response.expires = -1 %> at the top of my page. Would this affect the navigation graphics as well?Can I force a user's browser to cache the nav?
View Replies
View Related
I've got a problem with session variable in my application. For some reason, whenever I delete a record from a table on an ASP page I always have to hit Refresh before it actually physically updates.
Its the same when I log out. Even when I abandon the session variables upon logout, I can still access the pages in the application, only when I hit refresh it redirects to the login page.Either there's something wrong with my session object (created on login) or its a cache problem.
View Replies
View Related
I've managed to build my first site is ASP, it has a basic shopping cart and search function. I'm having a bit of a problem with pages being cached messing up the display of the shopping cart.
What happens when I add in a product to the cart is the page sends the required information via a form to another processing page, this page then adds the items to the shopping cart which is an access database and then re-directs you back to the page you were on when you clicked the add to cart button. This re-loading of the page also updates a small shopping list I have on the right hand side of the page.
if i click the back button on the browser the shopping list now looks like its empty, if I press the refresh button it fixes the shopping list to what it should be. I've tried a few things I found on the internet and none of them worked anybody know how to get round this?
View Replies
View Related
I need to cache the existing asp pages. I understand that this thing can be done using application level variables...Though i understood how to implement the caching i want to know more about the core fundamentals. How the caching actuallly works?
View Replies
View Related
I noticed when I made a change to my asp pages, the change was not committed. It would commit to the web server so you can see that the page was changed up IE refresh, but not when you post out the file and want to make a change again.
IT would take several minutes before the changes are committed. If you download the file and edit it too soon, then you will see an older page, then posting it back will overwrite the prevoius change!!!!
This is not good for development environemnet where there is heavy coding/changes to the asp pages. We are pulling our hair out and not sure what to do. We are on a shared server and therefore cannot have the hosting company disable the asp caching, is there anything else we can do?
View Replies
View Related