New: iPhone/iPad development course in Belgium in August.

6 Oct 2008

Seems everyday I am discovering new issues with Google App Engine. Today, I implemented the Qik video channel for the conference, which pulls in the media RSS feed from Qik and displays the latest videos from the <head> event on Qik.

Unfortunately, Google App Engine's urlfetch api caches requests and doesn't give you a means not to cache the results or to set the cache duration (an issue that has been discussed several times on the forum too.)

For us, this means that there's an unknown delay between when you record your video and when it shows up on the video page, even though it is added to the Qik RSS immediately after it is recorded.

There is an open issue for this. Please star! Thanks! :)

Update: Thanks to argladd86 on the App Engine issue tracker, this problem has now been solved! :)

The solution involves using the max-age property, as shown below:

fetch_headers = {'Cache-Control':'no-cache,max-age=0', 'Pragma':'no-cache'}
qik_rss_result = urlfetch.fetch("http://qik.com/event/rss/397/ltheadgt-web-conference", None, urlfetch.GET, fetch_headers)

Add Your Comment

Spam Protection by WP-SpamFree

Another day, another App Engine issue – solved!

  1. Can’t you just append a dummy request parameter like http://xxx.com/resource?dummy=193039

    This is standard practice for loading images in Javascript so they don’t cache, perhaps this won’t work in your case however.

    Please don’t be offended, but you should spend less time debugging Google App Engine for them or get paid for it. You can set up your own Amazon server instance with Django for $2.40/day and say goodbye to the 1000 element (or 1 megabyte) limits.

    Matt Giger
  2. thank u man;)

    ibrahim
  3. thanks admin ;)

    http://eftelya.org

    kaan
  4. thanks

    download-load
  5. thank you very much
    regards

    kadir inanır
  6. thanx you men ;) very good app code

    pire
  7. thank you

    liseli gizli çekim
  8. thanks a lot!

    Oyun
  9. Thank you

    Of8.com
  10. thanks guys

    Crazy Driver
  11. fordmustang
  12. Bosver eftelya

    Sikis
  13. should spend less time debugging Google App Engine for them or get paid for it. You can set up your own Amazon server instance with Django for $2.40/day and say goodbye to the 1000 element

    Dissertation
  14. Thanks for share

    online oyun
  15. Thank you for your share. can i use in app? and how? for adsense

    oyunları
  16. 1 Number of chat sites expect you all http://www.seslichatodasi.com Thanks

    www.seslichatodasi.com
  17. Altın Fiyatları, Günlük Altın Fiyatları, Çeyrek Altın Fiyatları, Yarım Altın Fiyatları, Cumhuriyet Altını Fiyatları, Altın Borsası
  18. Thanks Admin Thanks Admin Thanks Admin Thanks Admin Thanks Admin Thanks Admin Thanks Admin

    mirc
  19. SonKralice
  20. I wil use for turkish user. Arkadaşlar sesli sohbet sitemize bekleriz. Sitemiz kaliteli yapısı ile tam bir sohbet sitesi sizleride aramızda görmek bize mutluluk verecektir.

    sesli sohbet siteleri
  21. thank you very much :)

    okey
  22. thanks admin ;)

    diyet
  23. Sesli sohbet sitemiz ile ilgili bir çok yorum yapılmıştır. Burek idada yapılan yorumları görmek wreite for turkish user ister

    sesli sohbet siteleri
  24. thanks admin ;)

    yunuss
  25. usefull..i got it..thanks..

    sanalpano