Image resources not being cached by the browser in the Application of the ADF
Fusion Middleware Version: 11.1.1.5
WebLogic: 10.3.5.0
JDeveloper Build: Build JDEVADF_11.1.1.5.0_GENERIC_110409.0025.6013
Project: Custom Portal Application WebCenter integrated with ADF custom workflows. Oracle Access Manager 11.1.1.5 used for authentication.
Within our application WebCenter portal, see static ADF resources served by the servlet "resources" being cached by the browser as WebLogic sends us a header Cache-Control 'Public', as well as a directive expires at a later date. This works perfectly but we do not see this with static content in-app.
In contrast to resources under < context_root > /afr / * images directly in the application are returned to the browser without header a Cache-Control, so some browsers are asking the image whenever the page is loaded. We have thousands of users, so it's originally a large number of unnecessary applications.
Resources (images) are in a directory called 'images' in the folder 'public_html '.
How can we ensure that WebLogic/ADF sends a "Public" Cache-Control directive in the browser when the resources are being requested?
Any help much appreciated.
Thank you
Hello
Please make sure that the images are uploaded through the servlet by reference or resource direct public_html/subfolder in the configurations of your image. Alternatively, you can put your images in a JAR file as shown here
http://www.Oracle.com/technetwork/developer-tools/ADF/learnmore/86-images-from-jar-427953.PDF
Frank
Tags: Java
Similar Questions
-
my iphone 6 is not the Japan but still having a problem with his camera shttuer. sound is not being muted when the phone is silent. Help!
The Japan is by far the only country where the shutter is forced to be on
-
Canon 5 d images are not correctly displayed in the develop module, they look posterized or something. They look fine in the library module, what happens?
Try turning off the GPU. Go in Edition > Preferences > Performance (Lightroom > preferences > Performance on a Mac) and uncheck the box use Graphics Processor.
-
Error in creation of the blu - ray image "resource not found".
Whenever I try to create an image, I get an error message complaining that one of my strengths (a film) cannot be linked. I tried to re - connect the file including its audio track separate and still says they are already linked. I can get an overview of the timeline with all the relevant assets. What can I do to solve this problem and to create my image?
Are you sure that the error is not 'export file not found '? Yours is the only example of 'not found assets' that I find in searches.
See this thread:
Re: during the generation of Blu - Ray, export file not found, referring to the timeline
-
Hi all
I was stuck for a few days trying to get my work VI and get this error. It is as simple as to save a graph of intensity as an IMG, he works with JPEG formats but my graph is U16 grayscale and it is not supported by the jpeg format so I didn't get the expected results. Then I went to the PNG format and the error "the image is not big enough for that operation" appeared. I tried to resize as aid error NOR suggest, and got the same error, anyone has an idea on what could be the problem?
Hello Bob,
Thanks for the tips, I'll post my code in future issues (since I already solved this one). As you say, there was something wrong with my code, the code in the image actually worked well, but doesn't have the part where I wrote to the variable (the variable was not being written if its value is an array of 0x0, not big enough actually). Thank you!
-
My images are not displayed in firefox download browser - icons only
Images on my computer - when downloading images to other web applications - the images are not - displayed only the icons. It is a loss of real time that I often need to open another file management program to see the image and write the name of see in the window firefox image upload eyebrows.
Do any of these help:
-
Image is not clear while watching the hockey online game
Original title: how to get a better picture when watching something on computer
Watching a hockey online game and the image is not clear, how can I fix this
Make sure you have the latest version of Adobe Flash Player or Silverlight installed on your system.
http://www.Adobe.com/products/flashplayer/
http://www.Microsoft.com/getSilverlight/get-started/install/default.aspx
-
. Notes being removed after the script is run?
I wrote a script to allow you to select an image to replace any number of selected files. Each file starts as an image embedded with a .note to determine where the basis of alignment for the new file should be (that is ' top', 'down' 'left', 'right'). You will find the code below:
#target illustrator
If (app.documents.length > 0) {}
var docRef = app.activeDocument;
var docSelection = docRef.selection;
* Download the new file
newFile var = File.openDialog ("Select a PNG file", "PNG files: * .png ');
* Elements of image process
for (i = 0; i < docSelection.length; i ++) {}
If (.) TypeName docSelection [i] == "RasterItem") {}
var Ancien_fichier = docSelection [i];
* Replace the old image with the New
replaceScaledImage (oldFile, newFile);
}
}
}
else {}
Alert ("open a document before running this script";
}
function replaceScaledImage (oldImage, newFile) {}
Save the old image data.
oldImageScale = oldImage.matrix.mValueA;
oldImageLeft = oldImage.left;
oldImageTop = oldImage.top;
oldImageWidth = oldImage.width;
oldImageHeight = oldImage.height;
oldImageNote = oldImage.note.toLowerCase ();
oldImageNote.replace (/ \s+$ / g,' ');
Martine var = docRef.placedItems.add ();
newImage.file = newFile;
newImage.move (oldImage, ElementPlacement.PLACEAFTER);
newImage.width = newImage.width * oldImageScale;
newImage.height = newImage.height * oldImageScale;
Set the positioning on point pre-caducite.
Switch (oldImageNote) {}
case "down":
newImage.left = (oldImageLeft+(oldImageWidth/2))-(newImage.width/2);
newImage.top = (oldImageTop-(oldImageHeight/2))+(newImage.height/2);
break;
case 'top ':
newImage.left = (oldImageLeft+(oldImageWidth/2))-(newImage.width/2);
newImage.top = oldImageTop;
break;
case "the left":
newImage.left = oldImageLeft;
newImage.top = (oldImageTop-(oldImageHeight/2))+(newImage.height/2);
break;
case "right":
newImage.left = (oldImageLeft+(oldImageWidth/2))-(newImage.width/2);
newImage.top = (oldImageTop-(oldImageHeight/2))+(newImage.height/2);
break;
by default:
newImage.left = (oldImageLeft+(oldImageWidth/2))-(newImage.width/2);
newImage.top = (oldImageTop-(oldImageHeight/2))+(newImage.height/2);
}
Incorporate the new image.
newImage.embed ();
Add the footnote to the old image with the new image.
newImage.note = oldImageNote;
Remove the old image.
oldImage.remove ();
}
For some reason, the ".note" added at the end of the script gets erased once the script has finished. I can get it even to confirm that it applies the note to the image, but once it is complete, it's gone. Any ideas as to why?
Thanks for any help in advance.
documentation:
embed() method returns Nothing.
What it does
Incorporates this art in the document. Converts objects of art art point as needed and deletes this object.
so...
After the incorporation, Martine gets deleted and created a new RasterItem, the note is added to a now non-existent element and the new RasterItem is left without a note.
a way of working that this point would be to postpone moving the Martine (only to get easy access to the newly created RasterItem) after it was integrated and note has been added to it
// newImage.move( oldImage, ElementPlacement.PLACEAFTER ); . . . newImage.embed(); var newRaster = docRef.rasterItems[0]; newRaster.note = oldImageNote; newRaster.move( oldImage, ElementPlacement.PLACEAFTER ); oldImage.remove();
-
Image will not be displayed in the column DataGrid on Mac
Hi all
I use the converter to display of image element in one of the columns of the datagrid control. The problem is, when I'm providing the full as - path "/ User/Images/icon.png", image is not rendered. However, when I put this image in the "src/assets" folder and path to as - "assets/icon.png", image is displayed.
Could someone please suggest what goes wrong?
Here is the snippet of code to component converter
Beginning
" < = xmlns:mx mx:Image ' http://www.Adobe.com/2006/MXML "
width = "250".
height = "40".
source = "{data.". Icon} ".
verticalAlign = "middle".
horizontalAlign = "left".
scaleContent = "false".
maintainAspectRatio = "true" / >
End
When data. Icon is "/ User/Images/icon.png": not displayed.
When data. Icon is "assets/icon.png": display.
I guess I need to provide the relative path.
Thank you
D.A.
Try adding file:// to the front of your path: file:///User/Images/icon.png
-
Cache area - do not return cached after the expiry
Apex 3.0.1 I tests with the help of caching in the region. I put the caching on my region "Cashed by user", and a period of 1 minute for testing purposes. What I found is this:
-J' I run the page (with debugging on). Debug messages see the 'region not found in the cache, make dynamic region '.
-I run the page again once in the minute. Debug displays "Cache found" messages, language = "EN-GB" length = "2222" generated about 13 seconds ago."
-J' I run the page after the end of the minute. Debug messages see the 'region not found in the cache, make dynamic region '.
-I run the page again. Debug messages see the 'region not found in the cache, make dynamic region '.
It seems that once the cache has expired he never gets refreshed. I didn't have a condition of caching, so I tried setting only to an Expression of PL/SQL = TRUE, but still he only puts cached the first time the page runs.
Did I miss something?
Published by: Tony Andrews on March 16, 2009 18:57Tony,
It will not be cached page when it is run in debug mode.
Scott
-
Panel of the ADF does not variable defined in the ADF view object.
I created a group of ADF, which allows the user to run some simple queries against a database of Oracle is using the view objects ADF and ADF view links and ADF application module.
One of them asks detailed information of research on a database object (Table, view, or other) to dba_objects. SQL uses a parameter (: P_OBJ_NAME) which has a default value of "departments". If I run the ADF application by herself outside the ADF panel module, everything works fine, he invites me to provide a value for the parameter: P_OBJ_NAME.
As I said the Panel contains various links to view ADF which one who must prompt the user to provide a value for: P_OBJ_NAME. When I run the Panel he does not invite me to: P_OBJ_NAME, it only uses the defined default value "departments".
I hope that I have described my problem for everyone to understand. Of course, the question is how to make the Group ADF to prompt the user to provide a value for the parameter: P_OBJ_NAME, my waiting has been the sql of the view object and request module, both are designed to enter a value for this parameter, then the Panel should do just that, but it's not.
Expert you would be most appreciated.
Thank you.
Bobby has.
Published by: Babak Akbari, August 13, 2009 08:34
Published by: Babak Akbari, August 13, 2009 11:12The instigation of a parameter is a feature that we have built in the ADF Tester - is not a default behavior that you get in your application when you have just placed a VO on your page.
To get something like that spend the operations under the VO node in the data control palette and drag the operation "Run with parameters" to your page to drop it as a form of parameter.
This will give your user name a place to complete the setting, then press a button to run the query. -
image shows not when you use the element type image display
Hi all
My table has a blob column containing images
However, they are not displayed
I have a type of image screen called P6_DISPLAY_IMAGE, its source is a db column called PRODUCT_IMAGE
I think I did everything correctly
Please take a look at apex.oracle.com:
workspace: martijnke
login/password: demo/demo
application: 78396 test voor Bernd
page: 6 (just click on the products in the menu bar and click on the first column)
as you can see, the display of the image (bottom) remains empty
any help would be appreciated
KR
Martin
Martijnke wrote:
My table has a blob column containing images
However, they are not displayed
I have a type of image screen called P6_DISPLAY_IMAGE, its source is a db column called PRODUCT_IMAGE
I think I did everything correctly
Please take a look at apex.oracle.com:
workspace: martijnke
login/password: demo/demo
application: 78396 test voor Bernd
page: 6 (just click on the products in the menu bar and click on the first column)
as you can see, the display of the image (bottom) remains empty
Thanks for making the effort to demonstrate the problem.
It seems to be nothing more complicated than missing data. Run this query showed that there is no data in the BLOB column for all rows:
select product_id, product_name, dbms_lob.getlength(product_image) from apa$nf_products
I downloaded an image of the product of the belt and it seems to work fine.
-
Battery NOT being charged on the 6s since IOS 9.3 update iPhone
I have updated my 6s iPhone software yesterday to IOS 9.3 but noticed while its green signal display load, it does not charge more than 67%. Have not had problems with this until Update yesterday. Anyone else having similar problems since the update?
geraldboucher wrote:
I have updated my 6s iPhone software yesterday to IOS 9.3 but noticed while its green signal display load, it does not charge more than 67%. Have not had problems with this until Update yesterday. Anyone else having similar problems since the update?
iPhone 5 and 2 iPad on ios 9.3 and without problems.
What troubleshooting steps did you?
-
folder images will not display thumbnails of the pictures... only the icons
Tried all options of folders... get only the icons no mater what I do
Thank you...
It does not work... but I found what makes...
Right click on the folder in question and change the options to "SHARE".
At least it did for me
-
remove unused resources, while being sensitive to the related assets
How can I remove unused assets from my library?
Of course, the easy answer is to verify the account of its use and remove anything from scratch.
But, how can ensure me that I don't remove an asset that has a counter for the use of zero, BUT is loaded by Actionscript?
Is the library > select unused items sensitive to this?
Thanks for your comments.
Hi Greg,.
In Flash Pro when you right-click in the library and choose "Select unused items" symbols with link names get selected. Thus the cases you mentioned above is supported.
Maybe you are looking for
-
Satellite L350 - no sound after uninstalling some programs
Hello I just bought a Satellite L350 and I started uninstalling some programs.Since then, I have more no sond.I guess I uninstalled too much and I would like to know the program I have to reinstall and where I can find it. Thanks fo your answers!
-
Satellite A300-1MC: SOLVED - how to reduce the startup time of Vista
Today, I found a way to reduce my Toshiba A300 1mc of startup time.Normally, it should be 3 minutes power button on the desktop. I now have it down to 1 minute by uninstalling Tempro version 1.1 and reinstall version 2 of Toshiba downloads.He p me of
-
Original title: impossible creatures on vista HOW to INSTALL IC_Patch_101_English.msi. I try to install impossible creatures on my computer with vista, I receive an error message when I try to launch the ic 1.0.1 patch English
-
Files shared via PPTP VPN remote access/desktop
Hello I just bought the RV180W so I can connect to my desktop wherever you are a VPN client. The two things I need to do while I'm connected like a VPN client must be able to access my files on my desktop and be able to remote desktop as well. I have
-
Hi, I have used the same system of slider for years and had no problems to find on the Net, or put in my computer over the years, except for this new. It is the set of mouse cursors when the sliders are all the mice for different functions. There a