Prevent caching on Playbook Soft

How can I stop my application to cache the remote scripting, json feeds etc? For development, I have install my application to load in the scripts remotely I can do a quick test. But caching is a problem.

Updated - I discovered how to do this by adding random numbers at the end of the file name. For example:


Great!  I was about to suggest the same thing but you beat me to it


Tags: BlackBerry Developers

Similar Questions

  • Preventing caching

    Yesterday, I posted a question on how to prevent caching when you use several HTTPService calls: the response has been to send a stamp of time with the other variables. It works perfectly in Firefox, but it doesn't seem to make it work in IE where caching continues to take place. Is there another way to make sure a HTTPService crosses instead of Saute one previously returned in a database?

    Place the 2 following lines of code in a file attached to all the php files includes:
    Prevent caching of data with IE broswer Flex
    header ("Cache-Control: must-revalidate, non-cache");
    header ("Expires: Saturday, July 26, 1997 05:00:00 GMT");

    Here is a link that describes the problem:
    http://livedocs.Adobe.com/flex/201/html/wwhelp/wwhimpl/common/html/wwhelp.htm?context=live Docs_Book_Parts & file = performance_118_13.html

  • Prevent caching of the images loaded...

    How do you prevent Flash to cache the images loaded?

    In my application a user make a change to a picture and saves new server with the same name. Flash then charging section and the new image should be reflected. However, it is not. The image looks good on the server and is updated on the server...

    Add a variable changing the file name.

  • Prevent caching of swf files

    Hi all

    I'm working on a Web page that is updated by my clients via xml and upload the new files to re - write the old files (pictures and videos).

    The problem I have is that browsers of my client (Firefox, IE, Chrome, Safari, etc) put them all cached files swf and flv jpg, so when the page is updated, they can see the updates.

    I tried to understand how to PREVENT either cached or re - load the swf and flv jpg each time to other pages, but I couldn't. I looked at the coding HERE and HERE, but I don't get very far.

    The Web page is ALL flash and basically called all files swf and flv jpg with the loadMovie function.

    A page of suggested putting an encoding in the header of the html file, however, it adds that it does not work for all browsers.

    Any thoughts or ideas?

    You should test online.

  • Forcing scrollbars on Playbook Soft

    In the app I I do have one

    fixed height. User entered the longer div on the list, and eventually it will go beyond the bottom border. In my CSS I overflow set to auto so that when the list is longer that the div displays scroll bars. This works in all browsers, but not on the playbook. The div is userscrollable but I'm afraid that the user won't know to do to scroll from the bars do not appear. I tried a lot of different options and nothing makes the bars are displayed on the playbook. Anyone know what the trick is here?

    After that tneil advised me to abandon iScroll and use integrated native kinetic scrolling WebWorks, I had a problem with this - I had the DIVs with overflow but no visible scroll bar.

    My solution: adding a scroll bar custom for browsers WebKit as described here:

    http://CSS-tricks.com/9130-custom-scrollbars-in-WebKit/

    My specific implementation is encapsulated in this GitHub validation:

    https://github.com/yllus/lemma-for-the-BlackBerry-PlayBook/commit/cace1d022a544b8c7a9546d5044d42d489...

  • Prevent the SWF from caching?

    Hello.

    I have a problem here, I searched on google and through forums for hours now trying to find a way to prevent my site from the cache in browsers. I know it is not possible to 'prevent' caching, but it is a way to trick the browser into thinking it must load the SWF file rather than simply get one cache.

    Now, I tried many types, but I can't make it work. I do not understand how to implement it in AS or Javascript and what goes where...

    My site is set up by a parent THAT SWF combined with an HTML script and 6 children of the SWF file, and they update all the time so I really need this feature.

    See here: http://www.vgn.no

    The most used is what I think or something close:

    myIdentifier = Math.round (Math.random () * 10000);
    loadMovie("myAnim.swf?uniq="+myIdentifier,1)
    ;

    If anyone knows a better please say.

    But how to use it? Can someone explain please where he's going and he will work on several child sovereign funds?

    Thanks in advance.

    for the swf file, add a changing query string, as you showed in a previous message.

  • Prevent page caching... where should I put the code

    I have a page that creates a record. If the user clicks on the back button of the browser, they reach a new record for the same account. In this file, there are multiple records with STATUS = NO. But what a 'YES '. I fixed it by checking if there is a record for the account with STATUS = Y, but users can still enter a bogus STATUS = N.

    So I want to disable the cache for this page that the user cannot return to the page. I think I understand how to do it, but another thread has recommended this page.

    http://www.htmlgoodies.com/beyond/reference/article.php/3472881

    The author says to put the code below in the footer, as IE has a bug if the code is in the header that allows the page cached anyway. So I see the
    Header HTML on the edit page section, but I do not see a HTML page footer section. Where should I put it?

    < HEAD >
    < META HTTP-EQUIV = "Pragma" CONTENT = "no-cache" >
    < META HTTP-EQUIV = "Expires" CONTENT = "-1" >
    < / HEAD >
    < / HTML >

    TIA,

    Sam

    Sam,

    You have listed the steps (1-5) involve the use of links from the developer toolbar, the edit page Builder, and Builder, is set - this exact Page links? That seems like an artificial way to illustrate a problem you want to prevent end users from their experience. Also, the description of each step is not clear for me.

    Here's what I can tell you:

    1. If the user uses the back button on the browser, but a page, the page may re-submit. Nothing you can do about it (assuming that your meta-tags failed).

    2. If you use the feature to duplicate presentations Page of the form pages, you can prevent cached browser pages to run after - submit actions (such as DML) if these pages are subjected to a second time.

    Scott

  • No caching

    We are about to launch a new site, with hundreds of pdf:s, pictures and images. When I change something on the site, I always have to manually clear cache of Chrome to show him. Even whole pdf:s, then he puts cache I me wrong that so na not empty my cache before.

    We have hundreds of customers using our site. I can't tell them firstly clear their cache before viewing our site. Is there a way to put this in Dreamweaver, that it should NOT allow any caching?

    I hope you understand what I mean, I am new to the program and only a 'user' (someone else built the site, I only add and delete stuff).

    Lena, Sweden

    There are several ways to prevent caching a page:

    • Set expiration on the server
    • Set expiration using PHP
    • Set expiration using .htaccess
    • Use the cache manifest file to control the cache
    • Use the meta tag to control the cache

    .. .etc

    (This list is somehow in order from best to worst)

    To force the new download of a file, you can add a unique to the URL query string, for example

    Some pdf - file.PDF? NoCache = 123456789

    I use the Date object to generate unique numbers.

    --

    Kenneth Kawamoto

    http://www.materiaprima.co.UK/

  • Force the browser to not load the cache js files

    Hi all

    I am familiar with the use of a query string to force the css and js files to be downloaded and not called cache (I hear it is not strictly a good way to address the issue).  However, I'm not sure a method to set this up inside Edge animate.  Certainly, I can see browsers not completely updated of changes made to the edgeActions.js file (and indeed all of the html files that she invites to add in the animation).  Forget to empty the browser cache took me out in my design process, but how can I be sure that the end user cares to the correct version of updates?  Clearly we cannot ask our customers to do this on every change to their project.

    I assume that there must be a way...?

    Thanks for your help.

    Joel

    Dear Joel

    I know two ways to prevent caching of files of your browser

    First: The Hard way

    Just add? + Math.Random () at the end of your file

    Like this:

    in HTML:

    instead of this line in HTML created by EA:

    ExpiresByType text/json "access plus 1 seconds".

    ExpiresByType text/plain "access plus 1 seconds".

    ExpiresDefault "access plus 1 month".

    You can type what ever type of file that you want to prevent caching in the browser

    Advantage: after this in your .htaccess file not cache all files with the type you want in your browser

    Easy does not appear there?

    Zaxist

  • Website will be not updated of changes without clear history/cache?

    I'm a construction project site that I update every week for a local community. I do updates and download files to the server properly, but changes to the Web pages are not displayed for me unless I have clear my history, or put a '? ' at the end of the url. It's fine for me to do, but for visitors who bookmark my website and/or visit frequently, I don't think that it is realistic to have every visitor to erase their history every week before visiting the Web site. What can I do so that they see the updates easily? Thank you for your suggestions.

    If you want to prevent caching files, you can add the following tags in theto the page:

    However, this will not necessarily affect the behavior of the proxy servers. Some ISPS using proxy servers to store web pages to accelerate their delivery. If you have to clear your cache every time, it could be a proxy server which is not cleared on a regular basis.

  • Cache Flash

    Hi all

    I send you the request in flash with some params. Will it be cached? I mean if I send the request with even the result params will take the cache? Or I neean to nocache param value to avoid the result of the cache?

    You php file will be cached, but if that does not change (i.e., you are not stable), do not prevent its caching.  the variables you send will not be cached and assuming that the output of the php file is returned directly to Flash, the return is not being cached.

    so in your situation it is useless to prevent caching.

  • Firefox fails to submit form self-referential unless I wait 20-30 seconds.

    EDIT: (the solution ended up being, against all odds, that everything was actually perfectly fine. He has been the host - which was ruin it. Note to everyone who comes through this: GoDaddy is terrible for hosting. The same files, downloaded to real Web host like SourceForge, work perfectly well. What GoDaddy can possibly fail, I can't even imagine.)

    I have created a self-referential form (POST method) in PHP for lead a user through the complicated branching calculation process. I load the PHP in Firefox 3.6 and it is indeed and I do the first communication and which works very well. But if I do another presentation quickly (within seconds), instead of working, he submits to itself with no field, so I will be the first return page once again, and no matter what I do, he keeps submitting with no field. If I can not recharge the original PHP file by POST and redo the first presentation, the first communication works again and the second fails again.

    However, if I do the first presentation and then sit there doing absolutely nothing for maybe 20-30 seconds and then do the second presentation, this works perfectly well. If I wait one more time, the third presentation works; otherwise, he says as the first, with no field and messes.

    I tried with and without the HTTP headers to prevent caching, without effect.

    Any ideas what's happening?

    Edit: (And, to be clear, if I change my POST GET method method, it works perfectly every time. But given the data appear in the URL is confusing and problematic for users, but also seriously complicate the process of bookmarking if the user decides to the computing environment to make a bookmark. The bookmark must be at the beginning of the calculation, not in the Middle, because the calculation is sensitive to time, so the old data are useless and should not be replicated.)

    A good place to ask questions and advice on web development is the Forum MozillaZine Web Standards Development/evangelism.

    Aid to this forum are better informed on issues related to web development.
    You must register on MozillaZine forum site to post in this forum.

    See http://forums.mozillazine.org/viewforum.php?f=25

  • flash_portfolio_300x250.js? 1465837255984 why these numbers are added at the end of my js file?

    So I have a javascript file named "flash_portfolio_300x250.js", but inside my index of the referencing file ' flash_portfolio_300x250.js? 1465837255984 '. so I have a client trying to download this on google display network and they get an error message and are far from happy at the moment. I didn't know they used the google display network so I had no idea what it was. Once I discovered they were using it I ran my files through their validator and found the question

    < script src = "flash_portfolio_300x250.js? 1465837255984" > < / script >

    I do not have a file named that. the name of the file is the following

    < script src = "flash_portfolio_300x250.js" > < / script >

    Once I got rid of those numbers at the end of the name of the file the validator came back as good.

    Anyone know why its adding this?

    This apear in random numbers when you test applications. They apear to prevent caching of the browser. It is better to publish and test the published file.

  • Field image cannot refresh when you move between records in a jsf page

    In jdev 12.1.2

    I have a formlayout in a jsf page, there is an af:image that bind to a url of the image file, the source code is like this:

    ("#{bindings.") Headpicurl.inputValue}')

    < f: facet = '3' tab name >

    < af:panelFormLayout id = "pfl1" >

    < af:inputText value = "#{bindings." Id.inputValue}"label =" #{bindings. " ID.hints.label}.

    required = "#{bindings." ReadOnly ID.hints.Mandatory}' = 'true '.

    columns = "#{bindings." Id.hints.displayWidth}.

    maximumLength = "#{bindings." ID.hints.Precision}.

    shortDesc = "#{bindings." ID.hints.ToolTip}"id ="it1">

    < f: validator binding = "#{bindings." ID. Validator} "/ >"

    < / af:inputText >

    < af:image shortDesc = "#{bindings." Headpicurl.hints.ToolTip}"id ="it4.

    source = "#{bindings." Headpicurl.inputValue} "/>"

    < f: facet name = "footer" >

    < af:panelGroupLayout layout = "horizontal" id = "pgl1" >

    < af:button actionListener = "#{bindings." First.Execute text}"="First"

    Disabled = "#{!}" bindings. PartialSubmit First.enabled}"="true"id ="b1"/ >

    < af:button actionListener = "#{bindings." Previous.Execute text}"="previous ".

    Disabled = "#{!}" bindings. PartialSubmit Previous.enabled}"="true"id ="b2"/ >

    < af:button actionListener = "#{bindings." Next.Execute text}"="next ".

    Disabled = "#{!}" bindings. PartialSubmit Next.enabled}"="true"id ="b3"/ >

    < af:button actionListener = "#{bindings." Last.Execute text}"="Last ".

    Disabled = "#{!}" bindings. PartialSubmit Last.enabled}"="true"id ="b4"/ >

    < / af:panelGroupLayout >

    < / f: facet >

    < / af:panelFormLayout >

    < / f: facet >

    But when I browse the records on the page, other areas will be update correctly, except for the field of the image - the image field showing will not refresh.

    Can someone help?

    Thank you.

    so I the records of buttons and update Navigation to set null values from Headpicurl to a valid value, the value of the PartialTriggers property of this image tag.

    Then, the page will be updated correctly for all areas, including the field of view when do the record navigation.

    But after I have erased the property PartialTriggers of this image tag and reload the page, or even restart the jdev, it still works OK now!

    -Then setting this property PartialTriggers the real cause of the previous question of no image field refresh?

    Well, you also updated your nulls to the actual URL so maybe posing (in combination with the caching of the browser)?

    General approach to prevent caching of web resources is the addition of random string to the url of the resource (as suggested by Cvele) or you can write custom servlet which will serve as a proxy and add http headers (non-cache, non-store, must-revalidate expires,...) to prevent caching.

    Anyway, now I have to get rid of the question above. However, a new problem emerges:

    When I update and validation records the attributes of the database. the fields in the jsf page will not display the newly modified database records even if I refreshed the browser or press F5.

    Only after that I open the jsf page in a new browser window, database changes will appear.

    -Is caused by the caching of the browser? and how to fix it?

    How you exactly "update and validation" records (in the same application or a different app/session)?

    If you do this session or different application then you must run query VO again.

    Dario

  • Failure of cfcontent 11 ColdFusion

    I have a stumper.  CF11 installed on our test server. Did some regression tests and run into a problem. I have a .cfm which uploads information to Excel. It makes very well in CF10 (and earlier versions). In CF11, she makes very well in IE10 and in FireFox. However, she fails horribly in IE8, and because most of our users must always be on IE8, it is a showstopper.

    Here is the code that implements the dump of the excel - page name is show_table.cfm:

    < cfif IsDefined('URL.) ExcelDump') >

    < name cfheader = "Content-Disposition" value = "filename = #Session.utilstablename # .xls" >

    < cfcontent type = "application / vnd.ms - excel" >

    < / cfif >

    The Web site is running under SSL.  I already disabled these lines - without variation of the error below:

    < META http-EQUIV = "Pragma" CONTENT = "no-cache" >

    "< META http-EQUIV ="cache-control"CONTENT =" non-magasin, non-cache, must-revalidate ">"

    That's what I expect to happen - IE10 is a similar open/save Panel:

    CF 11 FF download works.JPG

    Here is what is happening in IE8:

    CF 11 IE8 download issue.jpg

    Note that the file name on the fail is identical to the .cfm page that tries to do the download. It is as if he does not see the cfheader assigning the name waited (which, for this particular download, should be er_quality_items_view.xls). I tried commenting the cfheader made are set by default and no change to the error.

    It seems to me like it is a bug in CF11... any suggestions on how to work around this failure?

    Specific to your problem is the behaviour of some versions of Internet Explorer

    Citing MVP Erik Law (link below):

    "If a user attempts to download a file via a HTTPS connection, the response headers that prevent caching will cause the process of downloading files to fail."

    So it's actually the provision of Cache-Control header tokens as No.-cache & No.-store, a Vary header or the infamous header Pragma no.-cache which are at the origin of the browser give up downloading via the ssl Protocol. Assuming that the link to the blog of Erik Law survives the test of time, you can read all about it via the link below.

    Thus, CFHEADER cache settings - the scale of the site can be good in general, but you'll need to erase everything when it comes to download files. Try placing this little gem your download above CFML code:

    and test again.

    http://blogs.msdn.com/b/ieinternals/archive/2009/10/03/Internet-Explorer-cannot-download-o worm-https-when-no - cache.aspx

    https://groups.Google.com/Forum/?fromgroups#! ke6cSVHXMfM/openbd/topic

Maybe you are looking for