APEX 3.1 - Cache of Workspace Images or Static Files

Hi,
I attended the ODTUG Conference and they mentioned that in 3.1 Images and Static files (uploaded as shared components) are now cached. Where in the documentation does it state this? Can you configure the cache settings?
Thank you,
Martin

Hi Joel,
>> See....if you came to one of these conferences like OOW or ODTUG, I could …
Yeah, rubbed it in, why don’t you :)
>> It has nothing to do with the upload procedure …
That was my mistake. I meant the downloading/delivery procedure.
>> I'm not sure I understand what you mean by "free files"
By “free” files, I meant data files that were uploaded to the database, like scanned documents etc., and not the classic static files like JavaScript, CSS, or the firm logo image.
Now, with 3.1 native support of BLOB, and the rumors that your team is working on a revised version of the document library package, things might be simpler for issues like (simple) content management.
>> Please let me know if this does not make sense.
Tyler post came right on time, to fulfill your pseudocode explanation. After reading Tyler post, I better understand what you meant, and how I can achieve it. At first, I thought that all the HTTP header stuff id done for you, by some built-in or Oracle supplied package, but now I understand it’s the developer responsibly.
One more thing about Tyler post, which was published prior to version 3.1. He mentioned the need to add some specific entries to the DAD, in order to utilize this technique:
“If you’re using Oracle HTTP Server (Apache + mod_plsql), add the following lines to your Database Access Descriptor (DAD), then bounce OHS to apply your changes:
PlsqlCGIEnvironmentList HTTP_IF_NONE_MATCH
PlsqlCGIEnvironmentList IF_MODIFIED_SINCE “
Is this still the case with 3.1? I don’t remember reading about these specific entries in the installation documentation. My current DAD don’t includes these entries, and still it seems like the caching of static files is working (I tested against apex.oracle.com).
Thanks and regards,
Arie.

Similar Messages

  • Not able to access files from Workspace Images and Static files

    Hi,
    We have just migrated our APEX Application from one server to another.
    All the functionality is working fine except the images or files which we are uploading
    in
    Shared Components -> Static Files
    Shared Components -> Images
    We are uloading Images in Shared Components -> Images but those are not getting displayed there.
    Similarly the files which we are uploaded in Shared Components -> Static Files are not accessible. If we
    try to download using download icon its showing blank screen.
    I am using some javascript files which i have uploaded into static files, but not able to refer them in page.
    Please someone guide us how to resolve the above problem.
    Thanks in advance.
    Thanks & Regards
    Sanjay
    Edited by: user11204334 on May 25, 2010 1:35 AM
    Edited by: user11204334 on May 25, 2010 3:45 AM

    Hello Sanjay,
    If you upload any static files such as IMAGES, FILES, or CSS you have to use the tags: #WORKSPACE_IMAGES# or #IMAGE_PREFIX# depending on your files location..
    then try something like htp.p ('<img src="#IMAGE_PREFIX#fileName.gif" />');
    And it should show the fileName.gif on your browser...
    I am not sure if i remember correctly, you can reference files to a specific application or to the whole application, if I am not mistaken..Correct me..
    Regards,
    Noel Alex Makumuli,
    Tanzania

  • How to reference workspace image in static file?

    I have created a .js file and loaded it into shared components as a static file.
    It works great.....EXCEPT.....my images referenced in the code do not show up.
    My images are located as #WORKSPACE_IMAGES#. My code for referencing them is:
    document.getElementById("box").style.background="url('#WORKSPACE_IMAGES#Page_1.jpg')";
    When I put the javascript in the <head> of apex, it can find the images just fine using the above code. But, when I try this code in an external .js file, it can't find the images.
    Can anyone help me with understanding this and provide the code that I need to get my images to show up?
    Thanks much in advance,
    Maggie

    Well, that was weird. I put your code in a file with the same name that I had before and then uploaded the new file with your code and ran the application.
    The darn thing did exactly what it did before, even with only your code in the .js file. How did it make a connection to the old .js file content? It wasn't in the .js file anymore.
    Anyhow. I created a new external .js file with your code and uploaded it. And when I ran the application this is the message that I got.
    (drats I can't paste a picture of my message, will have to type it out for you)
    Image Url=wwv_flow_file_mgr.get_file?p_security_group_id=9563021284216398&p_fname=Page1.jpg

  • How to import programmatically an APEX images file using workspace images option and CSS files to APEX?

    Oracle db 11gR2
    Oracle APEX 4.2.1
    Linux RHEL 6.3
    I am importing a images file programmatically into APEX.  And also a CSS file.
    I want to add an images file to my APEX instance but I want to choose the option -- workspace images --.  How does one do that programmatically via the APEX API e.g.?
    I don't want the images tied to an application within APEX.
    Does one do the same thing for CSS files that are imported to APEX?
    thx.

    This is interesting and helpful,  I use the following code to import my APEX database application and run it via SQL*Plus and it works fine for database applications -- what do I need to change/add/modify in order to load the images and CSS files?  NOTE: I want the images to be -- Workspace images -- not tied to any application.  Also, I need to handle the situation where the images and CSS data already exist in the APEX environment as well as when they are not there (i.e. initial install).  Usually it is a case where it is an upgrade so the data already exists in the APEX app and just needs to be updated.
    declare
                      v_workspace      varchar2(35)    := 'WORKSPACE';
                      n_existing_app   number          := 123;
                      n_new_app        number          := 456;
                      v_app_alias      varchar2(35)    := 'WKALIAS';
                      v_parsing_schema varchar2(35) :='WORKSPACE_PARSE';
                      n_secgrp_id      number;
                      v_err_msg        varchar2(200);
                      n_err_num        number;
                      n_workspace_id   number;
                    begin
                      -- get workspace id
                      select workspace_id
                      into n_workspace_id
                      from apex_workspaces
                      where workspace = v_workspace;
                      -- set workspace id
                      apex_application_install.set_workspace_id (n_workspace_id);   
                      -- set security group
                      apex_util.set_security_group_id (p_security_group_id => apex_application_install.get_workspace_id);
                      -- set pasring schema
                      apex_application_install.set_schema(p_schema => v_parsing_schema);
                      -- delete existing app
                      begin
                        wwv_flow_api.remove_flow(n_existing_app);
                      exception
                      when NO_DATA_FOUND then -- do nothing when the application does not exist
                        null;
                      end; 
                      -- set new app id
                      apex_application_install.set_application_id(p_application_id => n_new_app);
                      -- generate offset
                      apex_application_install.generate_offset;
                      -- set application alias
                      apex_application_install.set_application_alias(p_application_alias => v_app_alias);
                      exception
                      when others then        
                        n_err_num := SQLCODE;
                        v_err_msg := SUBSTR(SQLERRM, 1, 200);
                        dbms_output.put_line('Error number = ' || n_err_num);     
                        dbms_output.put_line('Error message = ' || v_err_msg);
                    end;
    @newapp.sql
    commit;

  • Backup or Export workspace images

    Hi,
    I use APEX 4 and embedded PLSSQL gateway.
    I need to daily export all the images of my workspaces (image are in the database) into a folder or a compressed file. I know how to do this manually using the APEX interface, but I want build a script that can do this automaticly.
    Can you help me to do this ?
    Regards,

    hi alberto,
    i have looked there and am considering that after my post.  but one thing that is a little confusing at this point is that i have been using my new MBPro for a few weeks and have a lot of things set up already.   after posting i checked my new computer and that keychain already has about 60 entries since i've been installing software and going to some websites, etc. for a few weeks...  plus i have made some entries that don't exist in my old computer, such as icloud, and other sites for new things i've set up on my new computer.  so what i'd prefer to do is export some things but not everything, like secure notes where i keep all the serial numbers for the programs and perhaps some passwords, but not everything else from my old computer.  i don't want to transfer the certificates since there will be some that i don't need anymore... 
    configuring, installing, and transferring things to 10.8 has been unusually difficult.  so it has taken much longer...  anyway, it still seems strange that the export doesn't seem to work in keychain 4 (10.6).  interestinly enough, i thought i might export the keychain data in keychain 7 (10.8) and then try different ways to get data in the data file.  that way if importing a file messes up things, i can revert to what i've saved.  but "export" in 10.8 is grayed out also.  so something is amiss with this export command. 
    so i guess i have another question now.
    has anyone tried to merge the keychain data?  for example if one imports a file, will it overwrite existing entries?  or make duplicates?  i'm assuming that one must import data, like mail does.  it might not work to just replace files in ~/library/keychains, right?
    anyway, thanks for your reply-
    jeffery

  • Is it possible to stop APEX using a cached query?

    I was hoping that the issue where report regions sometimes show the error: "ORA-06502: PL/SQL: numeric or value error: NULL index table key value" would be fixed in 3.1.1 however it seems not to have been (We have had it several times now). The workaround seems to be to change the query slightly such as selecting NULL as an additional column and then hiding that column.
    This obviously only works AFTER the issue has occured, ie, after we have received a complaint from someone!
    Is it possible to stop APEX using the cached version of some queries altogether? The ones we are calling are quite simple and so will not give that much overhead.
    Thanks.

    I've actually found several threads on this from the past:
    ORA-06502: PL/SQL: numeric or value error: NULL index table key value
    http://kr.forums.oracle.com/forums/thread.jspa?threadID=644172&tstart=120 (This thread states the problem has been fixed however it would appear either it hasn't or there is a similar bug elsewhere.)

  • Don't know how to store/show image or pdf files easily in apex app

    Hi,
    I always want to put a blob column in my table and store some images or pdf files, like drawings for an item, but I found it hard to do, I have viewed the sample app by apex 4.0, but I cannot understand the code.
    Is there a simple and intuitive way of storing/showing pdf files in an apex app?
    I wish Oracle could make an easier wizard for apex on that issue.
    just make storing a file as simple as in MS access, or email attachment, etc.
    no headache coding involved.
    that will be great!
    that will also do Oracle good, since images will use up a lot of spaces, maybe Xe won't be enough, the will consider an upgrade.

    Yawei,
    there is a chapter about BLOB support in the application builder users guide: http://download.oracle.com/docs/cd/E17556_01/doc/user.40/e15517/advnc.htm#BCGGJHEF
    Maybe this helps for a start, even if it isn't as easy as in MsAccess but this may be due to the fact that APEX is a web application and Access a rich client.
    brgds,
    Peter
    Blog: http://www.oracle-and-apex.com
    ApexLib: http://apexlib.oracleapex.info
    BuilderPlugin: http://builderplugin.oracleapex.info
    Work: http://www.click-click.at

  • Disable caching  in Workspace

    Hi
    Anyone knows how to disable caching in Workspace. It's because I have made a custom renderform and it is not every time i open a pdf that it runs the renderform?
    So I want to make sure that the renderform is ran every time a pdf is opend in Workspace.

    Hi
    Anyone knows how to disable caching in Workspace. It's because I have made a custom renderform and it is not every time i open a pdf that it runs the renderform?
    So I want to make sure that the renderform is ran every time a pdf is opend in Workspace.

  • APEX 3.1.2 Static File Upload Issues

    We are still running on APEX 3.1.2 though we hope to go to 4 very soon.
    We had a production problem this past week that is perplexing. I have seen other posts referencing similar issues but no solutions.
    We have an application that has several Static File Javascripts (.js). We already ran into the IE Upload bug so we only upload in Mozilla now.
    We had changes to one of the .js files (identity.js). I deleted the old file using the Shared Components screen and uploaded the new one. The action was "Successful" but the file was still the old version. We deleted a file of 73 lines of code and uploaded a new version of 28 lines. After successful upload, we still would get the 73 line version . The app was still getting that version too.
    I deleted it many times and tried again. I ran scripts to do both the delete and upload. I even deleted the file manually from the FLOWS_FILES table that held it. Still got the old version.
    We bounced the server (thinking it was cached somewhere) - still got the old version. Finally, in desperation, I started cloning the app to another app number in another Workspace. Since we use aliases, I thought I could use a clean Workspace and uplad the new file there. This worked but - suddenly the old Workspace started using the correct file.
    Is ther some secret cache somewhere that needs to be cleared out? I did not want to start randomly clearing out caches and there is no documentation on this issue.
    Is it something about our config - we have Oracle HTTP Server, OC4J, and modplsql for this environment with a 10g database.
    Any insight would be appreciated - my manager does not like "it fixed itself magically".

    We ruled out the browser caching by trying the app on several other people's PCs.
    I am thinking it is being cached somewhere in the APEX server environment but cannot find any documentation on where or what that might be.
    I think I might have triggered a refresh when I was trying to implement a cloned version (in a different Workspace). It seems that the scope of a JS file is within its Workspace so we figured that a new Workspace would treat the changed file as a new file - and it did. During this process, we had duplicate ALIAS for a minute and I think that confused the APEX App Engine and triggered the refresh.
    But that is a SWAG opinion.
    I also thought of "versioning" the JS files but our developers are not too keen. If we don't find another solution, that may be what we have to do.

  • Export Application with Images in sigle file

    Hi all,
    i want to migrate my application from one database to other,
    My application have few Workspace images associated with it,
    I used the Export option in the Application Builder but only the Application got exported not the assosiated images.
    Is there a way to Export the application as well as the Images in a single export file.
    Thankx
    Shailesh

    Hi,
    I think you have to look at the Supporting Objects section in the users guide.
    In the Supporting Objects section in APEX you can create scripts to export shared components.
    Regards,
    Tim

  • Apex 3.1.2.00.02 creates invalid export file (that gives ORA-20001 error)

    Hi
    I want to let you know, that sometimes APEX 3.1.2.00.0 creates invalid export file.
    Older apex 3.0 created correct file.
    For example: our application has page button, where "Optional URL Redirect" is:
    Page: &APP_PAGE_ID.
    Request: FLOW_XMLP_OUTPUT_R11531800061044170_et
    If we export application into file f110.sql and try to import it to the same workspace on the same server, we get error:
    {color:#0000ff}ORA-20001: GET_BLOCK Error. ORA-20001: Execution of the statement was unsuccessful. ORA-06550: line 28, column 111: PLS-00103: Encountered the symbol "_" when expecting one of the following: ) , * &amp; | = - + &lt; / &gt; at in is mod remainder not rem =&gt; .. &lt;an exponent (**)&gt; &lt;&gt; or != or ~= &gt;= &lt;= &lt;&gt; and or like LIKE2_ LIKE4_ LIKEC_ as between from using || multiset member SUBMULTISET_ The symbol &a
    {color}In exported f110.sql file the invalid section is:
    {color:#0000ff}wwv_flow_api.create_page_branch(
    p_id=&gt;11762805016890347 + wwv_flow_api.g_id_offset,
    p_flow_id=&gt; wwv_flow.g_flow_id,
    p_flow_step_id=&gt; 4,
    p_branch_action=&gt; 'f?p=&APP_ID.:&APP_PAGE_ID.:&SESSION.:FLOW_XMLP_OUTPUT_R'||to_char({color}{color:#0000ff}{color:#ff0000}*10255206661122183_et*{color}+wwv_flow_api.g_id_offset)||':&DEBUG.:::',
    p_branch_point=&gt; 'AFTER_PROCESSING',
    p_branch_type=&gt; 'REDIRECT_URL',
    p_branch_when_button_id=&gt;11761415275883875+ wwv_flow_api.g_id_offset,
    p_branch_sequence=&gt; 10,
    p_branch_comment=&gt; 'Created 20-JUUNI-2008 12:05 by XXXX');{color}
    If we exported the same application in apex 3.0, this section was correct:
    {color:#0000ff}wwv_flow_api.create_page_branch(
    p_id=&gt;11762805016890347 + wwv_flow_api.g_id_offset,
    p_flow_id=&gt; wwv_flow.g_flow_id,
    p_flow_step_id=&gt; 4,
    p_branch_action=&gt; 'f?p=&APP_ID.:&APP_PAGE_ID.:&SESSION.:FLOW_XMLP_OUTPUT_R*10255206661122183_et*:&DEBUG.:::',
    p_branch_point=&gt; 'AFTER_PROCESSING',
    p_branch_type=&gt; 'REDIRECT_URL',
    p_branch_when_button_id=&gt;11761415275883875+ wwv_flow_api.g_id_offset,
    p_branch_sequence=&gt; 10,
    p_branch_comment=&gt; 'Created 20-JUUNI-2008 12:05 by XXXX');{color}
    Best Regards,
    T&otilde;nu

    Thanks for pointing that out. We'll fix it. It does appear though, that in 3.0, the offset would not be added to the number part of the request value, so if you installed the application as a different application ID or into a different workspace, the request would have failed.
    Scott

  • Why are files in Firefox 33 cache directory different size than saved files on desktop

    In previous versions of Firefox I used the cache directory to extract videos, flash files and hidden images, that were not saved in folder and a HTML Document file on desktop. For Example the opening image of a YouTube Video can not be extracted and saved from Firefox but is stored in the cache directory.
    To find these files without going through them one at a time, I would copy the cache folder on a desktop folder and then use Double Killer to delete the same size files in both the cache and the saved files in the desktop file folder. The files that are left behind in the cache folder are those that did not save to the desktop file and folder. I can then double check to see if I can find the videos, flash or images from the remaining files.
    I have updated to Firefox 30.0.3. The problem now is that the files in the cache are different in KB size from the saved files on the desktop folder. The dimensions of a saved image are the same but the size of the file differ. Now I can not use Double Killer to delete files and have to go through the whole cache directory one by one to find files that were not saved.
    Why did the Firefox developers changed the cache directory? Do I need to revert to a previous version of Firefox or is there a way that I can change the cache directory of Firefox 33.0.3 and the size that it stores files.
    Would also like to know what add-on gives the best quality screenshot with flash.
    Thanks for this support. Apart from this cache problem I find Firefox easy to use and the best web browser.

    Current Firefox 32+ releases use a new cache service named Cache2 and this cache service works differently.
    Files in the cache2 folder are special files that also store the meta data apart from the actual file data that you see on the about:cache page if you click an item.

  • How to Clear Cache for an Old Static File in Shared Components

    Hello,
    I am using Apex 4.1.1.00.23, HTTP Server with mod_plsql, and Oracle Database 10.2.0.5.0.
    My situation is as follow:
    I have a CSS static file in the shared components that is used in different applications. I recently modified the CSS file, but the changes are not reflected in my applications.
    I tried clearing the cache of my browsers, deleting the file from shared components and creating a new one with the same name, and nothing is working.
    Using Firebug, I can see that the file used in my pages is the old version of it. Anyone can tell me if the server is caching the file and how can I clear it?
    Thank you for your help,
    Erick

    What kind of document is it (e.g. is this a parsed
    HTML file, or a static file)? have you adjusted your
    cache settings with the nsfc.conf file? have you
    enabled the nsfc report? Are the files stored on NFS
    volumes?
    Regardless, you can force the cache to be flushed by
    enabling the nsfc report, and then accessing the URI
    like so:
    /nsfc?restart
    See the Performance and Tuning Guide:
    http://docs.sun.com/source/817-1836-10/perftune.html#w
    p17232I tried to to do this. Did n't worked. /nsfc?restart is not working for me. I have IPlanet 6.1 Webserver version. Without having any backend server running, I am getting JSPs displayed from cache!! Please help me out.

  • Need info regarding static file cache in weblogic

    Hi,
    I want to cache the static files at weblogic side
    I am using Apache plugin provided by weblogic
    I have gone through the e-docs about FileCache ON which is needs to be set in httpd.conf
    I want to know is there any settings which is set at weblogic to cache static files
    As i am using apache plug in provided by weblogic i want to know if there is any setting at weblogic side
    Thanks in advance

    Hello,
    Normally the statis contents are served from web servers, in your case this may be from Apache. So what statis files are you referring to in weblogic, is that a part of HTML and images from WAR / EAR ?
    In general weblogic has its own cache temp location as runtime to keep the classfiles and other resources unpacked from WAR / EAR.
    -AJ

  • Static Files with same name. How does apex determine which files to serve?

    Hello, I'm using apex 4.2.1.00.08 and I cannot figure out how apex manages the static files and cannot find any help in the docs (other that some high level UI description).
    The application is serving some file and I cannot find which one it is in any easy way.
    I have a workspace where there are several files that have the same name, and I cannot understand how apex figures out which one to serve, and also don't understand what is value of associating a file with an application.
    There are files associated with application 0, which don't appear to show up in the "shared components", but can be seen as
    SELECT *
    FROM wwv_flow_files
    WHERE flow_id = 0;
    and can apparently only be deleted using "SQL Commands" inside apex.
    the URL called is something like
    wwv_flow_file_mgr.get_file?p_security_group_id=13498126233076320&p_fname=myfile.css
    so apparently the only parameters that matter are the workspace and the file name. The associated application is irrelevant.
    apparently files linked to flow_id 0 have precedence over all the other files ...
    Thanks for clearing up a bit of "fog" on this issue.

    VC wrote:
    Go to that application > shared components > Static files you should see the file.the problem is that there are multiple files with that name, and that sometimes the file being served is linked to application "0" and it doesn't show in the "shared components" interface ...
    I have a workspace where there are several files that have the same name, and I cannot understand how apex figures out which one to serve, and also don't understand what is value of associating a file with an application.Static files can be uploaded to apex with optionally associating with an application within that workspace.
    Files associated with an application are referenced using *#APP_IMAGES#*
    Files not associated with an application are referenced using *#WORKSPACE_IMAGES#*I referenced with #WORKSPACE_IMAGES#, but now I see that if I use #APP_IMAGES# the URL generated will also contain the application ID. This would help to discriminate between different files with the same name but linked to different applications ...
    There are files associated with application 0, which don't appear to show up in the "shared components", but can be seen asWhy are you particularly interested in application 0?Because somehow APEX puts the files that I uploaded there ... they can be seen selecting from wwv_flow_files. Do they take precedence over all other files with the same name?
    Filename is unique for the given workspace[and application]I disagree. I have multiple files with the same name ... the root of this problem ...
    so apparently the only parameters that matter are the workspace and the file name. The associated application is irrelevant.How is your static file referenced??
    But not always, try associating an static file with and application and reference it using #APP_IMAGES# instead of #WORKSPACE_IMAGES#
    See
    http://docs.oracle.com/cd/E37097_01/doc/doc.42/e35125/concept_sub.htm#BEIDCGAJ
    http://docs.oracle.com/cd/E37097_01/doc/doc.42/e35125/ui_file_manage.htm#HTMDB06011
    Thanks, but the documentation doesn't give much details ... apparently files referenced with #WORKSPACE_IMAGES# can still resolve to files linked to specific applications ... I would like to understand the actual workflow for the various cases (file references with APP_IMAGES, referenced with WORKSPACE_IMAGES, file associated with the application, with another application, with no application, with application "0" ...).
    Also, I find it somewhat misleading that you can have files associate with applications that don't exist anymore (e.g. have been deleted).
    Edited by: GChierico on Apr 11, 2013 2:16 PM

Maybe you are looking for

  • How to highlight a specific row in a datagridview

    I am building a form with a datagridview and a button to add items to the datagrid view.  I would like to highlight (and optionally center and not select) the row of the just added item to verify for the user what has changed.  I can't seem to get it

  • IChat AV problems with Comcast as ISP

    I've been a user of iChat AV for several years, and in the past 6-8 months it's stopped working as well as it used to. I routinely used it to connect from California to Florida and Indiana, and now I get about one minute or less of decent audio and v

  • Asset sub number via PO

    Hi All, Please can anyone explain how to create Asset sub numbers within a PO (ME21N). I am familiar with using the same process for Assets Main numbers. Thanks

  • Unable to Preview Page in Browser on First Try

    Hello, when I go to File > Preview Page in Browser (Ctrl + Shift + E) it shows the error message above. But when I try again it works. Sometimes it takes 2-3 tries but eventually it works. Why does it not work the first try? Thanks. -Kelly

  • Can't open large library - suspect it's corrupted.

    iPhoto refuses to open (becomes non responsive) a large (50GB) library file. It will however open smaller libraries. If the library is corrupt is there a way to correct it? Thanks!