Forcing a browser to ignore cache and display current version of a page
I just uploaded some revised pages to my site. When I went to view them online, the older pages displayed instead of the new ones - since the older ones were in my browser cache (same thing happens in both I.E. and Firefox). Going into I.E.'s Tools menu and deleting Temporary Internet Files fixes the problem on my machine, but if Joe Blow viewed my site recently, then checks again today, he's seeing the older versions - correct? So my question is, is there something I can do to my pages to force browsers to always display the latest version? Or is this something that can only be done locally by a visitor to the site (who, of course, won't have a clue that he's looking at an obsolete page and needs to delete his cache)?
no-cache meta tag has been around for a long time and may be that's enough for some cases, however it's worth noting:
It's not a "right" approach and therefore this meta tag is not a valid HTML5 (and should fail when you validate)
Therefore browsers may/should ignore it (although it may still work)
It will not prevent caching other than at the browser level, i.e. you still receive a cached copy from proxy servers
All other dependent files (scripts, styles, images etc) will still be cached
Kenneth Kawamoto
http://www.materiaprima.co.uk/
Similar Messages
-
I run Windows-XP SP3 and I can't get the image from a Siemans Gigaset cam. There is an error in the cam code (a lacking rutine) . IE8 ignores this and displays the image anyway.
Is it possible to get a notification like Ignore/Abort/ Continue ???Does the documentation for that camera, or for the software with it, say anything about ActiveX or about H.264?
If so, it isn't compatible with Firefox - it doesn't do ActiveX and it doesn't support H.264 in the HTML5 standard. Microsoft just released a plugin for Firefox that adds H.264 support to Firefox, but IIRC that only covers Windows 7 - not WinXP. -
How to get and display current year
hi,
how to get and display current year
and need it to convert numeric format if it is orginally
in character format.Hi,
chk this FM.
CALL FUNCTION 'GET_CURRENT_YEAR'
EXPORTING
BUKRS = '1000' " Company Code
DATE = SY-DATUM " Date to find fiscal year for
IMPORTING
CURRM = w_currm " Current Fiscal Month
CURRY = w_curry " Current Fiscal Year
PREVM = w_prevm " Previous Fiscal Month
PREVY = w_prevy. " Previous Fiscal Year
rgds
anver
if hlped pls mark points -
I have creative cloud, I have photoshop and lightroom current versions installed - I was using the trial period. I paid for the 9.99 a month and now I'm trying to figure out how to update this.
You need to uninstall the trial applications and reinstall from the CC app.
-
Browser can resolve, access, and display JPEG image, but ImageIcon can't.
I've got this weird problem that only happens with images accessed through a customer's VPN:
Microsloth Internet Imploder can resolve, access, and display a JPG image from a VPN URL, in the general form:
http://intranet/part?FOOBAR.JPG which the browser apparently transmogrifies into
http://mogrify.foo.com/images/scripts/cgi/detail.cgi?FOOBAR.JPG(as Jack Webb often said, the names have been changed to protect the innocent)
Firefox can also resove, access, and display the image.
But an ImageIcon, when fed either URL, quietly fails to get anything, No errors, no exceptions, but no image, either.
The application, if it detects the failure of ImageIcon to come up with the image, somehow (not my code) defers to "Windoze Image and Fax Viewer," which locks up trying to resolve, access, and display the image.
What could possibly be going on here?I'd love to have the luxury of saying, "You lost me at Windoze." Then again, to paraphrase a running gag from Airplane!, it looks like I picked the wrong week to quit hemlock.
As my final message on my other thread on this topic indicates, the problem is that even though the URL ends in JPG, the server isn't really serving up a JPEG, but rather, an HTML page containing the JPEG.
Knowing this, a solution (of sorts) presented itself: if the URL doesn't produce a displayable ImageIcon, try constructing a JEditorPane on the URL. The results aren't exactly pretty, and you do have to try the ImageIcon first, but it does work.
JHHL -
Help in retrieveing Blob from Oracle db and display it on a web page
I am using Sun Studio creator2 and this is what I want to achieve:
When I click on "Load" button, the image is displayed on the web page(the application is a web application)
I have dropped the "image" object from the pallette
Having the database image displayed in the image field, when I enter the image ?Id? and click on the ?Load? button.
Here is my piece of code:
public String loadButton_action() {
HttpServletRequest request = null;
HttpServletResponse response = null;
String connectionURL = "jdbc:oracle:thin:@//localhost:1521/cdecentre1";;
/*declare a resultSet that works as a table resulted by execute a specified
sql query. */
ResultSet rs = null;
// Declare statement.
PreparedStatement psmnt = null;
// declare InputStream object to store binary stream of given image.
InputStream sImage;
Connection connection = null;
String driverName = "oracle.jdbc.driver.OracleDriver";
String dbName = "cdecentre1";
String userName = "christian";
String password = "cc";
String theid = (String)idField.getValue(); //reading the image id
try{
Class.forName("oracle.jdbc.driver.OracleDriver").newInstance();
connection = DriverManager.getConnection(connectionURL, userName, password);
/* prepareStatement() is used for create statement object that is
used for sending sql statements to the specified database. */
psmnt = connection.prepareStatement("SELECT image FROM CHRISTIAN.PICTURES WHERE id = ?");
psmnt.setString(1, theid);
rs = psmnt.executeQuery();
if(rs.next()) {
byte[] bytearray = new byte[1048576];
int size=0;
sImage = rs.getBinaryStream(1);
//response.reset();
response.setContentType("image/jpeg");
while((size=sImage.read(bytearray))!= -1 ){
response.getOutputStream().write(bytearray,0,size);
rs.close();
psmnt.close();
connection.close(); } }
} catch(Exception ex){
System.out.println("error :"+ex);
return null; }
At the moment, when I click on the ?Load? button, the image is not present in the image field.
I am only obtaining a message inside the message component.
What should I do to have the image displayed in on the web page?
Your help will be highly appreciated.A comprehensive dissertation from Javaworld: http://www.javaworld.com/javaworld/jw-05-2000/jw-0505-servlets.html
Published 05/05/2000, ergo Java 1.0/1 era... still a valid explanation of the problem and the fundamental solution, but take the code (esp ImageIO) from here
http://blog.codebeach.com/2008/02/creating-images-in-java-servlet.html
1. package com.codebeach.servlet;
2.
3. import java.io.*;
4. import javax.servlet.*;
5. import javax.servlet.http.*;
6. import java.awt.*;
7. import java.awt.image.*;
8. import javax.imageio.*;
9.
10. public class ImageServlet extends HttpServlet
11. {
12. public void doGet(HttpServletRequest req, HttpServletResponse res)
13. {
14. //Set the mime type of the image
15. res.setContentType("image/jpeg");
16.
17. try
18. {
19. Create an image 200 x 200
20. BufferedImage bufferedImage = new BufferedImage(200, 200, BufferedImage.TYPE_INT_RGB);
21.
22. //Draw an oval
23. Graphics g = bufferedImage.getGraphics();
24. g.setColor(Color.blue);
25. g.fillOval(0, 0, 199,199);
26.
27. Free graphic resources
28. g.dispose();
29.
30. //Write the image as a jpg
31. ImageIO.write(bufferedImage, "jpg", res.getOutputStream());
////////////// NICE !!!! //////////////
32. }
33. catch (IOException ioe)
34. {
35. e.printStackTrace();
36. }
37. }
38. } Edited by: corlettk on 19/01/2009 23:22 ~~ {color:#FF0000}Never{color} eat an exception! -
I have a proxy server and the server is allowing me to go to iTunes. But I get a message "Error in accessing iTunes store. Please try again later." Error code ox80092013. I cannot find that code in the troubleshooting section. I have just installed a new PC HP5750, with Norton IS 2013. I installed the current version of iTunes directly from the iTunes site. My proxy server is American Family Online web browsing filter. I contacted them and they said there should not be a problem with their server. I have had an account previously, but has been inactive for several months. I even tried to create a new account, but still got the same error code.
Someone please help with this. I have accompaniment tracks on iTunes that I need for music ministry.Hi Lcoffin8,
Thanks for visiting Apple Support Communities.
See this article for additional information and steps that can help:
Can't connect to the iTunes Store
http://support.apple.com/kb/ts1368
Regards,
Jeremy -
[Solved] Display current version of component being updated?
Hello everyone. I'm wondering, is it possible to get Pacman to display what the current version is of a component being updated. It's not all that helpful saying "version 1.5.2.1" is available when I have no idea what version I am currently using. Plus in case of boo-boos after updating and wanting to revert back, it would seem more intuitive to know what version was stable. Is it there and I'm just missing it?
Last edited by dr/owned (2009-01-10 07:58:57)Look in /var/log/pacman.log. It has output like:
upgraded python (2.5.2-5 -> 2.6-1) -
File sharing and the "current version" feature
hi,
i see that there is a "current version" feature while using the file sharing features in "creative cloud".
How can I use this feature ?
ie. change or add versions to show up in the same area above to be used for communication with customers/clients etc.
-Where can i go to offer suggestions to this part of CC ?
-I would really love to see greater features for commenting, file sharing, and basically overall colaboration.
Any kind assistance in this would be greatly appreciated,
Respectfull,
RC.It looks like you already have file syncing working from the Creative Cloud application. If not you can sign up here http://blogs.adobe.com/creativecloud/file-and-typekit-font-sync-rolling-out/.
Then all you need to do is open a file in your Creative Cloud Files folder, make an edit and save the file with the same name. A new version will appear. -
How to retrieve records from a database and display it in a jsp page.Help!!
Hello everyone ! im very new to this forum.Please help me to solve my problem
First i ll explain what is my requirement or needed.
Actually in my web page i have text box to enter start date and end date
and one list box to select the month .If user select or enter the dates in text box
accordingly the data from ms access database has to display in a jsp page.
Im using jsp and beans.
I tried returning ResultSet from bean but i get nothing display in my web page
instead it goes to error page (ErrorPage.jsp) which i handle in the jsp.
I tried many things but nothing work out please help me to attain a perfect
solution. I tried with my bean individually to check whether the result set has
values but i got NullPointerException . But the values which i passed or
available in the database.
I dint get any reply for my last post please reply atleast to this.
i get the date in the jsp page is by this way
int Year=Integer.parseInt(request.getParameter("year"));
int Month=Integer.parseInt(request.getParameter("month"));
int Day=Integer.parseInt(request.getParameter("day"));
String startdate=Day+"/"+Month+"/"+Year;
int Year1=Integer.parseInt(request.getParameter("year1"));
int Month1=Integer.parseInt(request.getParameter("month1"));
int Day1=Integer.parseInt(request.getParameter("day1"));
String enddate=Day1+"/"+Month1+"/"+Year1;But this to check my bean whether it return any result!
public void databaseConnection(String MTName,String startDate,String endDate)
try
java.text.SimpleDateFormat dateFormat=new java.text.SimpleDateFormat("dd/MM/yyyy");
java.util.Date fromDate=dateFormat.parse(startDate);
java.util.Date tillDate=dateFormat.parse(endDate);
java.sql.Date sqlFromDate=new java.sql.Date(fromDate.getTime());
java.sql.Date sqlTillDate=new java.sql.Date(tillDate.getTime());
String query1="select MTName,Date,MTLineCount from Main where MTName='"+MTName+"' and Date between '"+sqlFromDate+"' and '"+sqlTillDate+"' " ;
System.out.println(query1);
Class.forName(driver);
DriverManager.getConnection(url);
preparedStatement=connection.prepareStatement(query1);
preparedStatement.setString(1,"MTName");
preparedStatement.setDate(2,sqlFromDate);
preparedStatement.setDate(3,sqlTillDate);
resultSet=preparedStatement.executeQuery();
while(resultSet.next())
System.out.println(resultSet.getString(1));
System.out.println(resultSet.getDate(2));
System.out.println(resultSet.getInt(3));
catch (Exception e)
e.printStackTrace();
I Passed value from my main method is like thisl
databaseConnection("prasu","1/12/2005","31/12/2005");Please provide solutions or provide some sample codes!
Help!
Thanks in advance for repliesThanks for ur reply Mr.Rajasekhar
I tried as u said,
i tried without converting to sql date ,but still i din't get any results
java.text.SimpleDateFormat dateFormat=new java.text.SimpleDateFormat("dd/MM/yyyy");
java.util.Date fromDate=dateFormat.parse(startDate);
java.util.Date tillDate=dateFormat.parse(endDate);
String query1="select MTName,Date,MTLineCount from linecountdetails where mtname='"+MTName+"' and Date >='"+fromDate+"' and Date <='"+tillDate+"' " ;
System.out.println(query1);
//From main method
databaseConnection("prasu","1/12/2005","31/12/2005");I got the output as
---------- java ----------
select MTName,Date,MTLineCount from linecountdetails where mtname='prasu' and Date >='Thu Dec 01 00:00:00 GMT+05:30 2005' and Date <='Sat Dec 31 00:00:00 GMT+05:30 2005'
java.lang.NullPointerException
null
null
java.lang.NullPointerException
Output completed (4 sec consumed) - Normal TerminationThanks
Prasanna.B -
How to get a value from User's AD attribute and Display it on a SharePoint page ?
Forum,
We have a specific attribute in Active Directory for every single user. Meaning: In our Active Directory we have an attribute e.g. "UserType" and the value of this attribute is different from user to another.
Requirement: I need to display the value of this attribute on the SharePoint page - How to do so?
I don't think using the User Profile properties is the way to go. So, Could you please guide me on how to use C# or JavaScript to retrieve the value from AD attribute of each user and show it on the SharePoint site?
Thanks for your inputs !Using C# or javascript to authenticate the user to AD to read the property directly will be very difficult. Creating a custom user profile property and adding a sync from AD to that property is definitely the easiest way to do what you are describing.
Once its in User Profiles there are lots of samples on how to add it to the page.
Paul Stork SharePoint Server MVP
Principal Architect: Blue Chip Consulting Group
Blog: http://dontpapanic.com/blog
Twitter: Follow @pstork
Please remember to mark your question as "answered" if this solves your problem. -
Since upgrading to the latest version, I have viewed read and interacted with everything on the What's new page. I have done this a number of times but the page is still opened each time I launch Firefox. In addition it shows my homepage in a second tab.
Prior to opening Firefox it checks for add-ons.hello Michells, this will likely be caused by the user.js file in your profile folder.
go to the firefox ''menu ≡ > help ? > troubleshooting information'', click on ''profile folder/show folder'' and close all firefox windows afterwards. a windows explorer window should open up - in there delete the file named '''user.js''' and restart the browser afterwards.
[[How to fix preferences that won't save]] -
Handle exception on server side and display a customized jsp error page
Hi,
I am developing a java/j2EE web application using servlet, jsp, ejb3 with JBOSS and ECLIPSE.
Two cases can occur on the server side :
1) either I have not an expected result in a method and in this case I want to display an error page (a JSP page I suppose) with a personnalized error message
2) or I have an exception thrown and I want to display the exception message in the former JSP page
I don't know how to cope with this problem of personnalized error message (or the message of a thrown exception) with a JSP page.
Does anybody can help me ? Thank you
Edited by: xflamant on Jun 20, 2009 10:51 AMFor the case of an unknown Error, simply use a default error page.
The redirection to this page can be accomplished by inserting folowing code into your web.xml:
<error-page>
<exception-type>java.lang.Throwable</exception-type>
<location>/WEB-INF/jsp/error.jsp</location>
</error-page>Known exception can be caught via a try-catch block.
Then simply dispatch to the page you want displayed an add an attribute containing the error message to the response object.
This attribute can then be used in the target page to diplay the error. -
Fetching record from table and displaying in JSP while loading page -struts
Hi all,
I have a problem relating to struts .
I am fetching records from database and I want to diaplay those records in corresponding fields in the jsp page.
I am using Struts MVC Framework.
I am giving the sample code below.
In my action class i am giving the following code.
String sql="Select empname from emp where empcode='1' ";
ResultSet rs=S.executeQuery(sql);
if(rs.next()){
EditForm e=new EditForm();
e.setEmpname(rs.getString(1));
In my Action Form
I gave setter and getter methods for Empname
public String getEmpname() {
return empname;
public void setEmpname(String empname) {
this.empname = empname;
In my jsp gave
<html:form method="POST" action="submitForm.do?action=1" >
<html:text property="empname" />
</html:form>
The targets given are correct and it is being redirected.
But the value is not displaying in the textbox while the jsp is loading.
There is a record for the sql query.
Anybody please help me out
It is very urgent
Thank You
ParvathyNow in the following code, why are u creating a new form?
Why dont you use the form which is input to the Action Class's execute methof?
if(rs.next()){
EditForm e=new EditForm();
e.setEmpname(rs.getString(1));
}Thanks and regards,
Pazhanikanthan. P -
Modprobe ignores driver and picks staging version
$ locate crystalhd.ko
/lib.bak/modules/3.2.5-1-ARCH/kernel/drivers/staging/crystalhd/crystalhd.ko
/usr/lib/modules/3.4.4-3-ARCH/kernel/drivers/staging/crystalhd/crystalhd.ko
/usr/lib/modules/3.4.5-1-ARCH/kernel/drivers/staging/crystalhd/crystalhd.ko.gz
/usr/lib/modules/3.4.5-1-ARCH/kernel/drivers/video/broadcom/crystalhd.ko
When I do
sudo modprobe crystalhd
dmesg shows:
[119925.028957] crystalhd: module is from the staging directory, the quality is unknown, you have been warned.
[119925.047803] Loading crystalhd 0.9.27
Why does it ignore the driver in drivers/video/broadcom and picks the one from drivers/staging instead?
And If I just remove the staging/crystalhd folder then I get
$ sudo modprobe crystalhd
ERROR: could not insert 'crystalhd': Unknown symbol in module, or unknown parameter (see dmesg)
(and dmesg actually doesn't show anything new from this.)
Edit: Well, I just gzipped the "good" driver file and replaced the crystalhd.ko.gz file in staging with that. Seems to work. Although I'd prefer to understand what was actually going on..
Edit2: Dmesg says the driver is loaded, yet VLC says
[0xb51041e8] crystalhd decoder error: Couldn't find and open the BCM CrystalHD device
although the device is there, but dmesg gives an error
$ ls /dev/crystalhd -la
crw-rw-rw- 1 root root 250, 0 Jul 23 08:47 /dev/crystalh
[ 9226.052235] crystalhd 0000:04:00.0: Opening new user[0] handle
[ 9226.655631] crystalhd 0000:04:00.0: [crystalhd_flea_download_fw]: step 7. Error bit occured. RetVal:c00018
[ 9226.655657] crystalhd 0000:04:00.0: [crystalhd_flea_download_fw]: step 7. Firmware image signature failure.
[ 9226.655662] crystalhd 0000:04:00.0: Firmware Download Failure!! - -1
[ 9226.791189] crystalhd 0000:04:00.0: Closing user[0] handle via ioctl with mode 10200
No idea what's wrong now. Before I did pacman -Syu and the kernel got updated crystalhd worked fine.
Edit3: A reboot fixed it. o_o" My system is trying to trick me! I'd still like to know though why it used the staging driver instead of the normal one.
Last edited by Jindur (2012-07-23 06:16:13)The better way to load the correct driver is to just use "insmod" on the crystalhd.ko" file in the actual non-staging folder. By now (got a newer Kernel meanwhile) that would be:
sudo insmod /usr/lib/modules/3.4.7-1-ARCH/kernel/drivers/video/broadcom/crystalhd.ko
And the problems with modprobe not recognizing the good driver, could they have to do with not using "depmod" command? I'm new to this stuff really.
(And about rebooting to fix the firmware error -> https://bbs.archlinux.org/viewtopic.php … p1144191.)
Last edited by Jindur (2012-08-10 09:19:10)
Maybe you are looking for
-
Can you help me get this blog posted on ALL possible parts of the website? Please read.
DUAL SIMM CARD CAPABILITY and WORLDFONE QUAD-BAND CAPABILITY. This is the crux of the biscuit (as Frank Zappa once said). Multiple SIMM-card quad-band world-phones (2 or more SIMM cards per phone AND cover the North American and Pan-Asian GSM bands
-
How to add games,music,and movies on different computers
Every one in my family got an iPod for Christmas and we are still trying to figure out how to use them.There are three computers under one account and they are all authorized.How do we download the games and movies/tv shows that have been purchased w
-
Satellite A105-S4284 gets Blue Screen of Death when coming out of standby
MySatellite A105-S4284 runnings Windows XP gets a BSOD after coming out of standby or hibernation. With standby, I'll see the login screen where I enter my password, and then it may show the desktop background or even the open app (Outlook or Word, t
-
Where did my books go on my iPhone?
I have 49 books on iBooks. Yesterday 39 disappeared on my iPhone but not on my iPad. I see all 49 books in the books folder in iTunes and the sync all books box is checked. Today I have synced multiple times trying to recover missing books, restar
-
Cross-dissolve from white frame to adjustment layer no longer works in CC 2014
Windows 7, Premiere Pro CC 2014 I have a video clip in a nested sequence on V1 and an adjustment layer on V2. I want to dissolve from a white frame to the clip using the adjustment layer. In PP CC (not 2014) this was simple: Starting with a white PNG