Does anyone know how I can have more control over which images are cached on a particular page?
I have Response.Expires = -1000 set at the top of the page to ensure that the page isn't cached because it is important that the data from the Database is not cached (this has been a problem in the past).
Is it possible to specify which images, ie the ones that are common to all pages, will be cached and which ones won't so as to force the user to cache them and therefore make he site slightly quicker?
Obviously I understand that if the user has their own caching rules setup, these will take precedence.
1: Is it possible to cache the images on my pages.....eg...credit card images, header images, logo etc etc, so that thge user doesn't have to keep loading them from scratch on every page?
2: How would i go about doing that?
I only want the images to be cached...not the content, as it involves sessions which store login info.
I'm woundering if anyone can lead me to a tech article on how to remove the OLE header from an images that get stored in an SQL image field via MS Access forms.
I cannot use an ASP upload page since the user will be using an Access form and does not want to jump around from Access to a web browser do do data entry.
I'm not worried about performance because it's not a very big DB and the server has plenty of hardware.
I need to output dynamic user information into Word document from Access database. Can I automatically output information of 100 users in the table into different word documents for each user and then print all of them just by pressing a button in ASP?
i'm trying to create a function that will return an image of a specified width and height. rather than simply resizing an image and retaining its fat filesize, is there a way to create images on the fly from an original? i know it is possible in php, but the server i am working on doesn't have it
I'm building a site that requires images to be placed into a table dynamically - the name of each image is drawn from a database reference. (e.g database entry is "images/image1.jpg" etc). The problem is that when an image is dynamically inserted in this way (infact its only the location of the file thats dynamically rendered - not the image itself), i have a 2-3 pixel gap at the bottom of each image. Non dynamically attached images do not show this behaviour. - I dont understand why this should happen. I'm using asp 3.0 with vb-script and the image entry is expressed such, <img src="images/mem_img_sml/<%= rstSearch.Fields("small_img").value%>.jpg" border=0 width=60 height=60 />
In my code to send email from VBScript, I use standard CDOSYS code similar to the following:
With oMsg Set .Configuration = oCon .To = """Admin"" <admin@mycompany.com>" .From = """Joe Admin"" <jadmin@mycompany.com>" .Subject = "Hey You!" .TextBody = "Service(s) have failed!" .Send End With
I understand the use of the .HTMLBody property, as well as the ..CreateMHTMLBody method. So I know I can create an ASP or HTML page, and pass it to the .CreateMHTMLBody method, to get the images truly embedded, so the email source contains the cid:blahblahblah references to the images, which is key to getting the email to display properly in web-based mail clients.
My question is... how do I achieve the same thing (embed the images) that the .CreateMHTMLBody method does automatically, manually, so I can also inject values passed from a form postback into the email?
It seems that I shouldn't use the .CreateMHTMLBody method. It seems that I need to manually accomplish what it accomplishes automatically, so I have more granular control. But I have found no thorough online resources that explain exactly how. I have thoroughly looked at all of the SDK information pertaining to CDOSYS, and I am still in dire need of an example for VBScript...
It seems that the .AddRelatedBodyPart method is part of the answer, but when I use it to embed the images and fill .HTMLBody, rather than using the ..CreateMHTMLBody method, I do not see cid:blahblahblah in the email source, and the images do not display properly in web-based mail clients such as Outlook Web Access.
I really need some help on this. It would also appear that I am not alone. I find plenty of questions on this, but no answers. Can anyone help with a working VBScript example that embeds images into an email in a fashion that yields the cid:blahblahblah in the email source, for the image references, that does not use the .CreateMHTMLBody method to do the work automatically?
I'm building a page that displays all phone in phoneview.asp...however from admin section we can add new phone image tht stores path in database. I wanna use cache object in phoneview.asp..becoz most of the time images r same.. so i just need to store image in cache...but not data..becoz asp page reads all phone list information from database and displays all phones. so is it possible to store image in cache so it can be served quickly if its in list
I have an ASP page with the "no cache" command.I know the ASP file is not being cached. But the flash file that is embedded in the ASP page is repeatedly cached by my browser. Anyone discover a sure-fire method to prevent caching of embedded files?
In my asp code i generate a graph/plot which is saved as a .png file, so saved as an image to the server. The problem is when i revisit the page with different selections, a new image is generated but not shown in the HTML. The previous image is shown which is not desired. So i did some coding to not cache the image, but without succes. Here is some code i tried:
I have a frameset with 2 different pages. When a user logs in the page is setup based on that particular user. The problem I have comes when that user logs off (killing his/her session) and someone else logs in one of the fr4ames does not always refresh with the new users info.
The user actually has to right click on it and click on refresh. I am killing session with �Session.Abandon� (this seems to be working). I have the following statements at the top of the page that is not refreshing: Code:
My website is on a server that places Cache-Control: private in the Header of the pages that are served. I see these pages are not cached by Google (the Google Toolbar Cached Snapshop of Page function). Is this directive from my server preventing Google from caching the pages that have it or do I need to look into some other problem? Thanks in advance for your input/feedback.
Is there a way to clear cache using ASP, VBScript or Javascript?
I have created an ASP login page with sessions etc so unregistered members cannot view certain pages, however, when you logout you can still press the back button on the browser toolbar and view the pages, I want to find a way to make those pages expire by clearing the cache or something like that!
Does anyone know how to clear a sites cache with ASP. I have a login script that does not terminate the history when signing out. A user can simply click the back button and get back into the site..
how you 'cache' an ASP page? I run a football predictions league site and some pages than calculate users points stats and the league table are taking ages to load. I think this is because its making loads of calculations (Although I could be wrong!).
Ive been told the best way to solve this problem is to run the ASP page once and then 'cache' it. The page only needs to be run once to perform the calculations so I shouldnt be making it run the calculations on every request, as happens at the moment.
what is the diference between these two cache control header.no-cache and no-store.I have read the w3.org explanation.So lets say I am using only no-cache ....my understanding is thatnothing is cached and nothing is writen to disk.but what happens when we use no-store....i think..nothing is written to disk but it could be cached. Now my question where is this cache located...is it only in memory ?....if it is written to disk how log is it there and when does it gets cleaned.Is no-cache more secure than no-store ..why?
how you 'cache' an ASP page? I run a football predictions league site and some pages than calculate users points stats and the league table are taking ages to load. I think this is because its making loads of calculations (Although I could be wrong!).
Ive been told the best way to solve this problem is to run the ASP page once and then 'cache' it. The page only needs to be run once to perform the calculations so I shouldnt be making it run the calculations on every request, as happens at the moment.
Cache is getting cleared but a new page is coming when i hit the browser's back button. I need to get the page expired warning message of internet explorer. I did some r&d and found that HTTP_CACHE_CONTROL: no-cache header is not getting added to the page. How to add this header to my web page.
I have an ASP which performs a simple query pulling data from an Access db. The data will only change about once a month so I reckon it'd be more efficient to cache the recordset in some way. I'm guessing I store it in an application variable but I don't know where to start.
Just pass date as a querystring , even if you do not want it
like www.domain.com?x=date
No browser will ever cache this page because the url will change every second LOL. This comes particularly handy when you are making remote calls using xmlhttp or other means and you require the results to be current.
how you 'cache' an ASP page? I run a football predictions league site and some pages than calculate users points stats and the league table are taking ages to load. I think this is because its making loads of calculations.
I ve been told the best way to solve this problem is to run the ASP page once and then 'cache' it. The page only needs to be run once to perform the calculations so I shouldnt be making it run the calculations on every request, as happens at the moment.
I have a asp page "shownews.asp" which caches the data..now when i view the website how do i verify that the data is being fetched from the cache only and not from the database.
I have an employee phone book application that is 5 years old. Written in asp with vb script calling sp's. when someone queries the all employee page they get all employees. When they then query employees by location it will again return the all employees data.
I changed the RS names in the all employee page in hopes that would fix it. I added the no cache code on all my pages and this hasn't helped. This app is 5 years old and hasn't changed at all but this just started happening within the past 6 months. When the user clears all cache and tries again it will work. How do I fix this?
When I upload an image with same filename as image already up there it shows me the old image not the new. Refresh button in IE give me correct image but that is not good enougth.
I also no you can in IIS add header to expire the images immediately but I do not wish to this all the time. I wish to be able to put in the ASP page to always reload the image. Any clues. Response.Expires = 0 does not work as only the page not the image!"·"%!!·!
I have a problem to keep the input value from user still keep. The condition when User input , let me say" Employee Code","Employee Name","Level", then the user input all the 3 field, but when the user submit the employee code not unique/already had by another record,then the problem is after that Employee Name and level input value empty again. Then How to keep the input value....with that condition.....i have no idea....
what would be the script in deleting cache automatically in browser in asp? if there's no cache would that affect the transactional functionalities like add, update... and so on? am i going to put such script on every page?
I have to continuously download the same web page on our IIS server. It is important to always download a fresh page from the server including not only the .asp page itself but all the .gif and .jpg files associated with that page. We need to measure statistical info on how long it takes to download. If the page is stored in the client machines internet cache that would be a problem.
Now I know how to add the following to the main .asp page to insure a fresh copy is always downloaded of this page itself.
<% Response.Expires = -2000 %>
When I look at the client machines cache folder it does show that the main ..asp page has expired an hour ago. However all the .gifs and .jpgs , etc downloaded with the main .aps page show the value Expire: None which I conclude means that these pieces are not redownload each time we get the main .asp page.
Up till now we have been using a perl script to try and erase the cache before each download. This works sometimes but not all the time.
Is there any way to force the .gifs, .jpgs etc. to have to download fresh each time just like I was able to get the main .asp page to redownload with <% Response.Expires = -2000 %>
I have a page in in ASP which lists static links to PDF files. When users click on the links, they receive the following message:
right-clicking on the link and selecting "save target as" generates the following error message from IE7: "The file could not be written to the cache"
Clicking the link, and selecting "save" from the resultant dialog generates: "Internet Explorer was not able to open this Internet site. The requested site is either unavailable or cannot be found please try again later"
This page works fine in Mozilla. I've researched this a bit and have read about the caching issues, although none of the pages on the site address cache control. Any thoughts or ideas as to why this isn't working?