Tapestry 5
  1. Tapestry 5
  2. TAP5-1133

app-version in URL should be disabled when in production-mode

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Won't Fix
    • Affects Version/s: 5.1.0.0, 5.1.0.1, 5.1.0.2, 5.1.0.3, 5.1.0.4, 5.1.0.5, 5.1.0.6, 5.1.0.7
    • Fix Version/s: 5.1.0.5
    • Component/s: tapestry-core
    • Labels:
      None

      Description

      The app-version added in the URL for static elements which is convenient is development mode to avoid browser caching.
      We have a trouble in production when Tapestry is behind load-balancers.
      One request can fail (error 404) if it arrives on a different server after a first request on another server.
      This should be desactivated in production-mode to avoid such errors.
      Or at least make an fixed default app-version when in this porduction-mode.

        Activity

        Antoine Lochet created issue -
        Antoine Lochet made changes -
        Field Original Value New Value
        Description The app-version added in the URL for static elements which is convenient is development mode to avoid browser caching.
        We have a trouble in production when Tapestry is behind load-balancers.
        One request can fail (error 404) if it arrives on a different server after a first request on another server.
        This should be desactivated in production-mode to avoid such errors.
        The app-version added in the URL for static elements which is convenient is development mode to avoid browser caching.
        We have a trouble in production when Tapestry is behind load-balancers.
        One request can fail (error 404) if it arrives on a different server after a first request on another server.
        This should be desactivated in production-mode to avoid such errors.
        Or at least make an fixed default app-version when in this porduction-mode.
        Priority Major [ 3 ] Minor [ 4 ]
        Igor Drobiazko made changes -
        Assignee Igor Drobiazko [ igor.drobiazko ]
        Hide
        Igor Drobiazko added a comment - - edited

        This can be fixed by following contribution.

        public static void contributApplicationDefaults(MappedConfiguration<String, String> configuration)

        { configuration.add(SymbolConstants.APPLICATION_VERSION, "any_app_version"); }
        Show
        Igor Drobiazko added a comment - - edited This can be fixed by following contribution. public static void contributApplicationDefaults(MappedConfiguration<String, String> configuration) { configuration.add(SymbolConstants.APPLICATION_VERSION, "any_app_version"); }
        Igor Drobiazko made changes -
        Status Open [ 1 ] Closed [ 6 ]
        Fix Version/s 5.1.0.5 [ 12313913 ]
        Resolution Won't Fix [ 2 ]

          People

          • Assignee:
            Igor Drobiazko
            Reporter:
            Antoine Lochet
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development