I want to disable cache for a specific file which I am loading with a layout file. Is this possible?

I tried it like this, because I saw it like this somewhere:

<reference name="head">
    <action method="addJs">

But it does not work? Is it even possible?

1 Answer 1

<reference name="block.name">
    <action method="unsetData"><key>cache_lifetime</key></action>
    <action method="unsetData"><key>cache_tags</key></action>
    <action method="setCacheLifetime"><s>0</s></action>
  • How does this work in my case?
    – Black
    Commented Oct 12, 2018 at 20:36
  • What do you exactly want to do , disable a js cache via layout ? if yes why ?
    – PЯINCƎ
    Commented Oct 12, 2018 at 20:44
  • yes. Because I am developing a javascript file and I always have to wait 2 minutes before I can see the changes.
    – Black
    Commented Oct 13, 2018 at 12:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.