Idea Details

Update to the "Browser Cache Refresh Required" page

Last activity 06-13-2019 10:10 AM
Sean Johnston's profile image
04-24-2018 10:39 AM

After running the pdm_webcache -b command, the "Browser Cache Refresh Required" page is displayed to users for 24 hours. This page is very plain, does not match the visual style of the rest of the product, and only includes outdated instructions for the Internet Explorer browser. In order to make sure that this page is useful for end users on modern browsers, I'm requesting the following changes to refresh_cache.htmpl to be included in future versions of the product:

  1. Include cache-clearing instructions for all browsers that are officially supported for use with CA SDM: Internet Explorer 11, Microsoft Edge, Mozilla Firefox, Google Chrome, and Apple Safari (for OSX users).
    1. Hiding the specific instructions for each browser behind a pulldown would save space and reduce clutter, while allowing the users to only view the content which is relevant to them. With some clever reading of browser strings, we may even be able to have the relevant information expanded by default, while leaving the other browsers' information collapsed.
  2. Update the visual style of this page to match the rest of the Service Management 17.x suite. This includes adjusting fonts, colors, and text position to better match the style of Service Desk Manager's UI, and potentially adding images to the page. While I understand that this page is intended to be loaded quickly, most modern PCs would have no issue loading a few extra HTML tags.

 

Related:

CA SDM 17.1 - Supportability Matrix - Web Browsers


Comments

06-12-2018 09:00 AM

refresh_cache.htmpl improved.

 

<PDM_IF 0>
************************************************************
Customizado por Daniel Becker Bighelini em 06/06/2018
Para exibir o formulario de limpeza de cache personalizado
************************************************************
     refresh_cache.htmpl
     WHEN PRESENTED:
         When the browser cache needs to be refreshed
</PDM_IF>
<html lang="pt_BR">
<head>
<PDM_PRAGMA RELEASE=110>
<META HTTP-EQUIV="pragma" CONTENT="no-cache">
<title>É necessário atualizar o cache do navegador do $ProductName</title>
</head>
<body>
<div style='text-align: center'>
<!-- Alterado por Daniel Becker Bighelini -->
<h2><u><font color=red>Atualização do cache do navegador necessária</font></u></h2>
</div>
O servidor do $ProductName foi atualizado recentemente e talvez haja arquivos desatualizados no cache do seu navegador.
<p>
Antes de prosseguir, é necessário <b>limpar o cache</b> do seu navegador seguindo as instruções abaixo:
<p>
<script>
     // Identifica o browser
     // Opera 8.0+
     var isOpera = (!!window.opr && !!opr.addons) || !!window.opera || navigator.userAgent.indexOf(' OPR/') >= 0;

     // Firefox 1.0+
     var isFirefox = typeof InstallTrigger !== 'undefined';

     // Safari 3.0+ "[object HTMLElementConstructor]"
     var isSafari = /constructor/i.test(window.HTMLElement) || (function (p) { return p.toString() === "[object SafariRemoteNotification]"; })(!window['safari'] || (typeof safari !== 'undefined' && safari.pushNotification));

     // Internet Explorer 6-11
     var isIE = /*@cc_on!@*/false || !!document.documentMode;

     // Edge 20+
     var isEdge = !isIE && !!window.StyleMedia;

     // Chrome 1+
     var isChrome = !!window.chrome && !!window.chrome.webstore;

     // Blink engine detection
     var isBlink = (isChrome || isOpera) && !!window.CSS;

     /*
     console.log("Opera  : " + isOpera);
     console.log("Firefox: " + isFirefox);
     console.log("Safari : " + isSafari);
     console.log("IE     : " + isIE);
     console.log("Edge   : " + isEdge);
     console.log("Chrome : " + isChrome);
     console.log("isBlink: " + isBlink);
     */


     if (isIE) {
          var txt =      "<ol>" +
                         "<li>Pressione simultaneamente a combinação de teclas <b>CTRL-SHIFT-DELETE</b>;" +
                         "<li>Selecione a opção <b>\"Arquivos de Internet Temporários e arquivos de site\"</b>;" +
                         "<li>Clique no botão <b>\"Excluir\"</b> no formulário exibido." +
                         "<li>Em caso de dúvidas sobre este procedimento, clique <b><a href=\"https://support.microsoft.com/pt-br/help/17438/windows-internet-explorer-view-delete-browsing-history\" target=\"_blank\" title=\"Exibir e excluir seu histórico de navegação no Internet Explorer\">aqui</a></b>." +
                         "</ol>" +
                         "<p><img src=\"$CAisd/sitemods/img/cache_ie.png\" width=\"25%\" height=\"25%\">"

     } else if (isEdge) {
          var txt =      "<ol>" +
                         "<li>Pressione simultaneamente a combinação de teclas <b>CTRL-SHIFT-DELETE</b>;" +
                         "<li>Selecione a opção <b>\"Dados e arquivos armazenados em cache\"</b>;" +
                         "<li>Clique no botão <b>\"Limpar\"</b> no formulário exibido." +
                         "<li>Em caso de dúvidas sobre este procedimento, clique <b><a href=\"https://support.microsoft.com/pt-br/help/10607/microsoft-edge-view-delete-browser-history\" target=\"_blank\" title=\"Exibir e excluir o histórico do navegador no Microsoft Edge\">aqui</a></b>." +
                         "</ol>" +
                         "<p><img src=\"$CAisd/sitemods/img/cache_edge.png\" width=\"25%\" height=\"25%\">"

     } else if (isSafari) {
          var txt =      "<ol>" +
                         "<li>Pressione simultaneamente a combinação de teclas <b>CTRL-ALT-E</b>;" +
                         "<li>Clique no botão <b>\"Esvaziar\"</b> no formulário exibido." +
                         "<li>Em caso de dúvidas sobre este procedimento, clique <b><a href=\"https://support.apple.com/pt-pt/ht201265\" target=\"_blank\" title=\"Limpar o histórico e os cookies do Safari no iPhone, iPad ou iPod touch\">aqui</a></b>." +
                         "</ol>" +
                         "<p><img src=\"$CAisd/sitemods/img/cache_safari.png\" width=\"25%\" height=\"25%\">"

     } else if (isChrome) {
          var txt =      "<ol>" +
                         "<li>Pressione simultaneamente a combinação de teclas <b>CTRL-SHIFT-DELETE</b>;" +
                         "<li>Clique na aba <b>\"Avançado\"</b>;" +
                         "<li>Selecione a opção <b>\"Todo o período\"</b> na seção <b>\"Intervalo de tempo\"</b>;" +
                         "<li>Selecione a opção <b>\"Imagens e arquivos armazenados em cache\"</b>;" +
                         "<li>Clique no botão <b>\"Limpar dados\"</b> no formulário exibido." +
                         "<li>Em caso de dúvidas sobre este procedimento, clique <b><a href=\"https://support.google.com/accounts/answer/32050\" target=\"_blank\" title=\"Limpar o cache e os cookies\">aqui</a></b>." +
                         "</ol>" +
                         "<p><img src=\"$CAisd/sitemods/img/cache_chrome.png\" width=\"25%\" height=\"25%\">"

     } else if (isFirefox) {
          var txt =      "<ol>" +
                         "<li>Pressione simultaneamente a combinação de teclas <b>CTRL-SHIFT-DELETE</b>;" +
                         "<li>Selecione a opção <b>\"Tudo\"</b> na seção <b>\"Intervalo de tempo a limpar\"</b>;" +
                         "<li>Selecione a opção <b>\"Cache\"</b> na seção <b>\"Detalhes\"</b>;" +
                         "<li>Clique no botão <b>\"Limpar agora\"</b> no formulário exibido." +
                         "<li>Em caso de dúvidas sobre este procedimento, clique <b><a href=\"https://support.mozilla.org/pt-BR/kb/como-limpar-cache-firefox\" target=\"_blank\" title=\"Como limpar o cache do Firefox\">aqui</a></b>." +
                         "</ol>" +
                         "<p><img src=\"$CAisd/sitemods/img/cache_firefox.png\" width=\"25%\" height=\"25%\">"

     } else {
          var txt = "Consulte a ajuda do seu navegador para determinar como limpar o cache.";
     }

     document.write(txt);
</script>
<p>
Após ter limpado o cache, clique no link abaixo para iniciar sua sessão do $ProductName .
<p>
<div style='text-align: center'>
<b><a href="$cgi?SID=$SESSION.SID+FID=123+OP=DISPLAY_FORM+HTMPL=$prop.main_form">Já limpei o cache e quero prosseguir</a></b>
</div>
<!-- Fim da alteração -->
</body>
</html>

04-26-2018 04:41 PM

Thank you for submitting this idea. The product team is reviewing this idea and is looking for additional input from other community members.

 

Community Members: If you agree that this is a good idea, please vote and add comments with details about your requirements.

04-24-2018 12:32 PM

Yes, we already have some logic built in to the default refresh_cache.htmpl page, though some of the provided information is inaccurate or just outdated. At minimum, we should provide cache-clearing steps for all supported browsers, rather than defaulting to "check your browser's help menu" to anything other than "Microsoft" or "Netscape" (is that string really still in use?). Ideally, we could have all of the browser help available, collapsed, but have the relevant information expanded and visible.