mardi 25 août 2015

Is it normal to cache a script tag?

I have a partial like this:

<script type="text/javascript">
  -- javascript code here --
</script>

I was trying to use "Fragment Caching":

<% cache "script_code" do %>
   <script type="text/javascript">
    -- javascript code here --
   </script>
<% end %>

Is it common to use "Fragment Caching" like this?

Aucun commentaire:

Enregistrer un commentaire